From 83fe5d473c11eef272ee111a4a2ba654f70fd43c Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 May 2017 08:52:08 +0900 Subject: [PATCH] Fix: Using a Different UglifyJS in gulp-uglify --- gulpfile.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gulpfile.ts b/gulpfile.ts index 2484fa8a0..d5ba64970 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -10,7 +10,7 @@ import * as ts from 'gulp-typescript'; import tslint from 'gulp-tslint'; import * as es from 'event-stream'; import cssnano = require('gulp-cssnano'); -import * as uglify from 'gulp-uglify'; +import * as uglifyComposer from 'gulp-uglify/composer'; import pug = require('gulp-pug'); import * as rimraf from 'rimraf'; import * as chalk from 'chalk'; @@ -18,8 +18,11 @@ import imagemin = require('gulp-imagemin'); import * as rename from 'gulp-rename'; import * as mocha from 'gulp-mocha'; import * as replace from 'gulp-replace'; +import * as uglifyjs from 'uglify-js'; import version from './src/version'; +const uglify = uglifyComposer(uglifyjs, console); + const env = process.env.NODE_ENV; const isProduction = env === 'production'; const isDebug = !isProduction;