Skip to content

Commit

Permalink
switch from uglify to terser
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Dahan committed Jan 21, 2020
1 parent 94da065 commit 4b6d40e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions frontend/build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin');

const env = require('../config/prod.env')

Expand Down Expand Up @@ -87,12 +87,12 @@ const webpackConfig = merge(baseWebpackConfig, {
},
runtimeChunk: 'single',
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
warnings: false
new TerserPlugin({
parallel: true,
sourceMap: true,
terserOptions: {
sourceMap: config.build.productionSourceMap,
},
sourceMap: config.build.productionSourceMap,
parallel: true
}),
],
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"rimraf": "3",
"semver": "7",
"shelljs": "0",
"uglifyjs-webpack-plugin": "2",
"terser-webpack-plugin": "^2.3.2",
"url-loader": "3",
"vue-loader": "15",
"vue-style-loader": "4",
Expand Down

0 comments on commit 4b6d40e

Please sign in to comment.