Skip to content

Commit

Permalink
uglifyjs-webpack-plugin の代わりに erser-webpack-plugin を使うようにした。
Browse files Browse the repository at this point in the history
  • Loading branch information
numb86 committed Nov 10, 2018
1 parent c90cb2e commit 009fc00
Show file tree
Hide file tree
Showing 3 changed files with 211 additions and 5 deletions.
208 changes: 207 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"eslint-plugin-vue": "^4.5.0",
"license-info-webpack-plugin": "^1.0.2",
"style-loader": "^0.21.0",
"uglifyjs-webpack-plugin": "^1.2.7",
"terser-webpack-plugin": "^1.1.0",
"vue-loader": "^15.2.4",
"vue-template-compiler": "^2.5.16",
"webpack": "^4.14.0",
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const LicenseInfoWebpackPlugin = require('license-info-webpack-plugin').default;
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const VueLoaderPlugin = require('vue-loader/lib/plugin');

module.exports = (env, argv) => {
Expand Down Expand Up @@ -45,8 +45,8 @@ module.exports = (env, argv) => {
optimization: isProduction
? {
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
new TerserPlugin({
terserOptions: {
output: {
comments: /^\**!|@preserve|@license|@cc_on/,
},
Expand Down

0 comments on commit 009fc00

Please sign in to comment.