1
1
mirror of https://github.com/Redocly/redoc.git synced 2025-02-27 15:30:34 +03:00

fix build

This commit is contained in:
Roman Hotsiy 2016-10-18 17:21:25 +03:00
parent 027408fc81
commit 3d64a536e7
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -12,6 +12,18 @@ const BANNER =
const IS_MODULE = process.env.IS_MODULE != null;
const TS_RULE = {
test: /\.ts$/,
loader: 'awesome-typescript-loader',
exclude: /(node_modules)/,
};
if (IS_MODULE) {
TS_RULE.query = {
noEmitHelpers: false
}
}
const config = {
context: root(),
devtool: 'source-map',
@ -58,14 +70,7 @@ const config = {
exclude: [
/node_modules/
]
},{
test: /\.ts$/,
loader: 'awesome-typescript-loader',
exclude: /(node_modules)/,
query: IS_MODULE ? {
noEmitHelpers: false,
} : {}
}, {
}, TS_RULE, {
test: /lib[\\\/].*\.css$/,
loaders: ['raw-loader'],
exclude: [/redoc-initial-styles\.css$/]