Skip to content

Commit 0d49fc8

Browse files
committed
webpack bundle analyser tests
1 parent 9e13ea9 commit 0d49fc8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"rimraf": "^2.6.2",
4040
"sass-loader": "^7.0.1",
4141
"vue": "^2.6.8",
42-
"vue-template-compiler": "^2.5.17"
42+
"vue-template-compiler": "^2.5.17",
43+
"webpack-bundle-analyzer": "^3.4.1"
4344
}
4445
}

vue.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
2+
13
module.exports = {
24
configureWebpack: {
35
output: {
46
library: "VueGridLayout",
57
libraryExport: 'default'
68
},
9+
// https://medium.com/js-dojo/how-to-reduce-your-vue-js-bundle-size-with-webpack-3145bf5019b7
10+
// plugins: [new BundleAnalyzerPlugin()],
711
},
812
css: {
913
extract: false
10-
}
11-
}
14+
},
15+
}

0 commit comments

Comments
 (0)