Skip to content

Commit

Permalink
Replace uglifyjs-webpack-plugin by terser-webpack-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-lhuillier committed May 4, 2019
1 parent 8fbe7b3 commit f7247fe
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 41 deletions.
58 changes: 22 additions & 36 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "black-shrimp",
"version": "1.1.2",
"version": "1.2.0",
"description": "A color picker to pick, save and organise color swatches. Export them as '.ase' files for programs like Illustrator or Photoshop.",
"author": "Thomas L'huillier <[email protected]>",
"scripts": {
Expand Down Expand Up @@ -45,7 +45,7 @@
"scss-loader": "latest",
"sortablejs": "^1.8.4",
"style-loader": "latest",
"uglifyjs-webpack-plugin": "^2.1.2",
"terser-webpack-plugin": "^1.2.3",
"url-loader": "latest",
"vue": "^2.6.10",
"vue-cli": "latest",
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { VueLoaderPlugin } = require('vue-loader')
const autoprefixer = require('autoprefixer')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const WebpackZipPlugin = require('webpack-zip-plugin')
const ChromeExtensionReloader = require('webpack-chrome-extension-reloader')
Expand Down Expand Up @@ -159,9 +159,9 @@ if (env === 'development') {
if (env === 'production') {
options.optimization = {
minimizer: [
new UglifyJsPlugin({
new TerserPlugin({
extractComments: true,
uglifyOptions: {
terserOptions: {
compress: {
drop_console: true
}
Expand Down

0 comments on commit f7247fe

Please sign in to comment.