mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-29 00:54:09 +03:00
Fix mixed deps for prod and dev build
This commit is contained in:
parent
2252596063
commit
c40de56a71
|
@ -43,16 +43,16 @@ gulp.task('inlineTemplates', ['sass'], function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
var JS_DEPS = argv.prod ? [
|
var JS_DEPS = argv.prod ? [
|
||||||
|
'lib/utils/browser-update.js',
|
||||||
|
'node_modules/zone.js/dist/zone.min.js',
|
||||||
|
'node_modules/reflect-metadata/Reflect.js',
|
||||||
|
'node_modules/babel-polyfill/dist/polyfill.min.js'
|
||||||
|
]: [
|
||||||
'lib/utils/browser-update.js',
|
'lib/utils/browser-update.js',
|
||||||
'node_modules/zone.js/dist/zone.js',
|
'node_modules/zone.js/dist/zone.js',
|
||||||
'node_modules/zone.js/dist/long-stack-trace-zone.js',
|
'node_modules/zone.js/dist/long-stack-trace-zone.js',
|
||||||
'node_modules/reflect-metadata/Reflect.js',
|
'node_modules/reflect-metadata/Reflect.js',
|
||||||
'node_modules/babel-polyfill/dist/polyfill.js'
|
'node_modules/babel-polyfill/dist/polyfill.js'
|
||||||
] : [
|
|
||||||
'lib/utils/browser-update.js',
|
|
||||||
'node_modules/zone.js/dist/zone.min.js',
|
|
||||||
'node_modules/reflect-metadata/Reflect.js',
|
|
||||||
'node_modules/babel-polyfill/dist/polyfill.min.js'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
var outputFileName = paths.redocBuilt + (argv.prod ? '.min.js' : '.js');
|
var outputFileName = paths.redocBuilt + (argv.prod ? '.min.js' : '.js');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user