From 7f292a65e1c1101fa1d0aede218aa46b0518f9cd Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 25 May 2017 15:39:26 +0900 Subject: [PATCH] Use uglify-es-webpack-plugin to fix Safari/iOS issue --- package.json | 4 ++-- webpack/plugins/minify.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d44bd8933..d617d62da 100644 --- a/package.json +++ b/package.json @@ -86,8 +86,8 @@ "swagger-jsdoc": "1.9.4", "tslint": "5.3.2", "uglify-es": "3.0.11", - "uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony-v2.8.22", - "uglifyjs-webpack-plugin": "0.4.3", + "uglify-es-webpack-plugin": "0.0.2", + "uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony", "webpack": "2.6.0" }, "dependencies": { diff --git a/webpack/plugins/minify.ts b/webpack/plugins/minify.ts index 78c587afe..ec4c9b340 100644 --- a/webpack/plugins/minify.ts +++ b/webpack/plugins/minify.ts @@ -1,3 +1,3 @@ -const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); +const UglifyEsPlugin = require('uglify-es-webpack-plugin'); -export default () => new UglifyJSPlugin(); +export default () => new UglifyEsPlugin();