From f9eaf8db3b3a45c3c8cb46437c86b96e08324320 Mon Sep 17 00:00:00 2001 From: nkzawa Date: Sun, 9 Oct 2016 21:45:26 +0900 Subject: [PATCH] use UglifyJsPlugin --- gulpfile.js | 5 ++--- package.json | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index bd022d5424..eff1c799d8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -2,7 +2,6 @@ const gulp = require('gulp') const babel = require('gulp-babel') const cache = require('gulp-cached') const notify_ = require('gulp-notify') -const uglify = require('gulp-uglify') const webpack = require('webpack-stream') const del = require('del') @@ -85,10 +84,10 @@ gulp.task('build-release-client', ['compile-lib', 'compile-client'], () => { 'process.env': { NODE_ENV: JSON.stringify('production') } - }) + }), + new webpack.webpack.optimize.UglifyJsPlugin() ] })) - .pipe(uglify({ preserveComments: 'license' })) .pipe(gulp.dest('dist/client')) .pipe(notify('Built release client')) }) diff --git a/package.json b/package.json index 94bfff1d33..6a5462bb3e 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,6 @@ "gulp-babel": "6.1.2", "gulp-cached": "1.1.0", "gulp-notify": "2.2.0", - "gulp-uglify": "2.0.0", "webpack-stream": "3.2.0" }, "license": "MIT" -- GitLab