removes breaking uglifyJS
This commit is contained in:
@@ -2,7 +2,6 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const Dotenv = require('dotenv-webpack');
|
||||
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||
const webpack = require('webpack');
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
const path = require('path');
|
||||
const getStyleLoaders = require('./getStyleLoaders');
|
||||
|
||||
@@ -16,9 +15,6 @@ module.exports = (config) => {
|
||||
publicPath: `${config.routes.admin}/`,
|
||||
filename: '[name].[chunkhash].js',
|
||||
},
|
||||
optimization: {
|
||||
minimizer: [new UglifyJsPlugin()],
|
||||
},
|
||||
mode: 'production',
|
||||
resolveLoader: { modules: ['node_modules', path.join(__dirname, '../../node_modules')] },
|
||||
module: {
|
||||
|
||||
Reference in New Issue
Block a user