Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Commit

Permalink
feat(deps): Upgrade from uglify to terser (#613)
Browse files Browse the repository at this point in the history
closes #612
  • Loading branch information
hermitmaster authored May 15, 2020
1 parent 03fb13f commit ef369bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion generators/client/templates/vue/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ limitations under the License.
"sass": "1.26.5",
"sass-loader": "8.0.2",
"sinon": "9.0.2",
"terser-webpack-plugin": "3.0.1",
"ts-jest": "25.4.0",
"ts-loader": "7.0.2",
<%_ if (protractorTests) { _%>
Expand All @@ -128,7 +129,6 @@ limitations under the License.
"tslint-eslint-rules": "5.4.0",
"tslint-loader": "3.6.0",
"typescript": "3.8.3",
"uglifyjs-webpack-plugin": "2.2.0",
"url-loader": "4.1.0",
"vue-jest": "3.0.5",
"vue-loader": "15.9.2",
Expand Down
9 changes: 4 additions & 5 deletions generators/client/templates/vue/webpack/webpack.prod.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const baseWebpackConfig = require('./webpack.common');
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 jhiUtils = require('./utils.js');

const env = require('../config/prod.env');
Expand Down Expand Up @@ -47,12 +47,11 @@ const webpackConfig = merge(baseWebpackConfig, {
new webpack.DefinePlugin({
'process.env': env
}),
new UglifyJsPlugin({
uglifyOptions: {
warnings: false
new TerserPlugin({
terserOptions: {
warnings: false,
},
sourceMap: config.build.productionSourceMap,
parallel: true
}),
// extract css into its own file
new MiniCssExtractPlugin({
Expand Down

0 comments on commit ef369bb

Please sign in to comment.