Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

Replace uglifyJs with terser #92

Merged
merged 2 commits into from
Mar 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions optimizations/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');

module.exports = ({
Expand All @@ -15,14 +15,8 @@ module.exports = ({
}
} = {}) => ({
minimizer: [
new UglifyJsPlugin({
sourceMap: false,
parallel: true,
uglifyOptions: {
compress: {
inline: false
}
}
new TerserPlugin({
parallel: true
}),
new OptimizeCSSAssetsPlugin({})
],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpacker",
"version": "4.2.2",
"version": "4.2.3",
"description": "Webpack configuration manager",
"main": "webpacker.js",
"bin": {
Expand Down Expand Up @@ -62,7 +62,7 @@
"postcss-will-change-transition": "^1.2.0",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"uglifyjs-webpack-plugin": "^2.1.1",
"terser-webpack-plugin": "^1.2.3",
"url-loader": "^1.1.2",
"webapp-webpack-plugin": "^2.3.1",
"webpack": "^4.20.2",
Expand Down