[webpack] minify aggresively

This commit is contained in:
2021-04-18 11:52:42 +05:30
parent bf8d0f99d2
commit beff450c58
3 changed files with 15 additions and 5 deletions

View File

@@ -18,16 +18,21 @@ const config = {
libraryTarget: 'commonjs2',
devtoolModuleFilenameTemplate: '../[resource-path]'
},
devtool: 'source-map',
// devtool: 'source-map',
externals: {
vscode: 'commonjs vscode' // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
},
optimization:{
minimize:true,
innerGraph:true,
usedExports:true
},
resolve: {
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
extensions: ['.ts', '.js'],
plugins:[]
},
stats:'minimal',
// stats:'minimal',
module: {
rules: [
{