chore: Replace Uglify with Terser

This commit is contained in:
Johannes Schill
2019-03-11 14:56:16 +01:00
parent 51e01eff0a
commit 8eab2bef33
3 changed files with 17 additions and 30 deletions

View File

@ -1,7 +1,7 @@
'use strict';
const merge = require('webpack-merge');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const common = require('./webpack.common.js');
const path = require('path');
const ngAnnotatePlugin = require('ng-annotate-webpack-plugin');
@ -49,7 +49,7 @@ module.exports = merge(common, {
},
optimization: {
minimizer: [
new UglifyJsPlugin({
new TerserPlugin({
cache: true,
parallel: true,
sourceMap: true