Improve build pipeline

This commit is contained in:
schmelczerandras 2020-09-17 16:52:12 +02:00
parent 2c26e07932
commit d0b53678e2
2 changed files with 5 additions and 10 deletions

View file

@ -6,9 +6,6 @@ var PATHS = {
bundles: path.resolve(__dirname, 'lib'),
};
const isProduction = process.env.NODE_ENV == 'production';
const isDevelopment = !isProduction;
module.exports = {
entry: {
main: [PATHS.entryPoint],
@ -31,9 +28,9 @@ module.exports = {
},
optimization: {
minimize: true,
usedExports: true,
minimizer: [
new TerserJSPlugin({
sourceMap: true,
test: /\.js$/i,
}),
],