From a8ef6b66f6745a7b26db8468b32f78668380d552 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 May 2017 09:47:48 +0900 Subject: [PATCH] Fix --- gulpfile.ts | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gulpfile.ts b/gulpfile.ts index d5ba64970a..278b20bb12 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -18,10 +18,10 @@ 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'; +const uglifyes = require('uglify-es'); import version from './src/version'; -const uglify = uglifyComposer(uglifyjs, console); +const uglify = uglifyComposer(uglifyes, console); const env = process.env.NODE_ENV; const isProduction = env === 'production'; diff --git a/package.json b/package.json index a1e59e8959..5a35bab8dd 100644 --- a/package.json +++ b/package.json @@ -85,6 +85,7 @@ "stylus-loader": "3.0.1", "swagger-jsdoc": "1.9.4", "tslint": "5.3.0", + "uglify-es": "3.0.11", "uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony", "webpack": "2.6.0" },