[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', libraryTarget: 'commonjs2',
devtoolModuleFilenameTemplate: '../[resource-path]' devtoolModuleFilenameTemplate: '../[resource-path]'
}, },
devtool: 'source-map', // devtool: 'source-map',
externals: { 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/ 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: { resolve: {
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader // support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
extensions: ['.ts', '.js'], extensions: ['.ts', '.js'],
plugins:[] plugins:[]
}, },
stats:'minimal', // stats:'minimal',
module: { module: {
rules: [ rules: [
{ {

View File

@@ -5,7 +5,7 @@
"author": "Atreya Bain", "author": "Atreya Bain",
"license": "MIT", "license": "MIT",
"publisher": "atreyabain", "publisher": "atreyabain",
"version": "0.0.3", "version": "0.0.4",
"icon": "assets/128.png", "icon": "assets/128.png",
"categories": [], "categories": [],
"keywords": [ "keywords": [

View File

@@ -17,11 +17,16 @@ const config = {
libraryTarget: 'commonjs2', libraryTarget: 'commonjs2',
devtoolModuleFilenameTemplate: '../[resource-path]' devtoolModuleFilenameTemplate: '../[resource-path]'
}, },
stats:'minimal', // stats:'minimal',
devtool: 'source-map', // devtool: 'source-map',
externals: { 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/ 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: { resolve: {
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader // support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
extensions: ['.ts', '.js'], extensions: ['.ts', '.js'],