diff --git a/package.json b/package.json index fdb2db298..096677668 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "trudesk", - "version": "1.1.11", + "version": "1.2-tango", "private": true, "engines": { "node": ">=9.10.0" @@ -16,7 +16,7 @@ "codacy": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive -R spec && cat ./coverage/lcov.info | cross-env CODACY_PROJECT_TOKEN=65070aca43cc4fba96eaabd4033c9528 codacy-coverage && rm -rf ./coverage", "webpackwatch": "webpack --config webpack.config.js --watch", "webpackdev": "webpack --config webpack.config.js", - "webpackdist": "rimraf public/js/* && webpack --env.production -p --config webpack.config.js", + "webpackdist": "rimraf public/js/* && webpack --env production --node-env production --config webpack.config.js", "snyk-protect": "snyk protect" }, "dependencies": { diff --git a/webpack.config.js b/webpack.config.js index 68d331c3a..a2f39aeab 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -113,7 +113,11 @@ module.exports = { module: { rules: [ { test: /angular\.min\.js/, loader: 'exports-loader', options: { type: 'commonjs', exports: 'single angular' } }, - { test: /uikit_combined\.min\.js/, loader: 'exports-loader', options: { type: 'commonjs', exports: 'single UIkit'} }, + { + test: /uikit_combined\.min\.js/, + loader: 'exports-loader', + options: { type: 'commonjs', exports: 'single UIkit' } + }, { test: /\.sass$/, exclude: path.resolve(__dirname, 'node_modules'), @@ -155,9 +159,11 @@ module.exports = { new TerserPlugin({ parallel: true, terserOptions: { + format: { comments: false }, ecma: 6, mangle: false - } + }, + extractComments: false }) ], splitChunks: { @@ -192,7 +198,7 @@ module.exports = { 'window.moment': 'moment', setImmediate: 'async' }), - new webpack.IgnorePlugin({ resourceRegExp: /^\.\/locale$/}), + new webpack.IgnorePlugin({ resourceRegExp: /^\.\/locale$/ }), new MiniCssExtractPlugin({ filename: 'app.min.css' })