temporarily disable mangling

This commit is contained in:
Roman Hotsiy 2016-08-22 22:41:28 +03:00
parent 1f1eb9852a
commit 27752909d4
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -109,13 +109,12 @@ gulp.task('concatDeps', ['concatPrism'], function() {
gulp.task('bundle', ['injectVersionFile'], function bundle(done) {
mkdir('-p', 'dist');
cp('lib/index.js', path.join(paths.tmp, paths.sourceEntryPoint));
var builder = new Builder('./', 'system.config.js');
builder
.buildStatic(path.join(paths.tmp, paths.sourceEntryPoint),
outputFileName,
{ format:'umd', sourceMaps: !argv.prod, lowResSourceMaps: true, minify: argv.prod, globalName: 'Redoc' }
{ format:'umd', sourceMaps: !argv.prod, lowResSourceMaps: true, minify: argv.prod, mangle: false, globalName: 'Redoc' }
)
.then(() => {
// wait some time to allow flush