build-misc: BundleAnalyzerPlugin
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -52,6 +52,7 @@
|
|||||||
"typescript": "^4.3.5",
|
"typescript": "^4.3.5",
|
||||||
"vue-loader": "^16.5.0",
|
"vue-loader": "^16.5.0",
|
||||||
"webpack": "^5.49.0",
|
"webpack": "^5.49.0",
|
||||||
|
"webpack-bundle-analyzer": "^4.4.2",
|
||||||
"webpack-cli": "^4.7.2"
|
"webpack-cli": "^4.7.2"
|
||||||
},
|
},
|
||||||
"pre-commit": [
|
"pre-commit": [
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,7 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { VueLoaderPlugin } = require('vue-loader');
|
const { VueLoaderPlugin } = require('vue-loader');
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
||||||
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||||
module.exports = [
|
module.exports = [
|
||||||
{
|
{
|
||||||
name: 'ingame',
|
name: 'ingame',
|
||||||
@@ -76,7 +76,8 @@ module.exports = [
|
|||||||
new VueLoaderPlugin(),
|
new VueLoaderPlugin(),
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: '../css/[name].css'
|
filename: '../css/[name].css'
|
||||||
})
|
}),
|
||||||
|
//new BundleAnalyzerPlugin()
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -151,6 +152,7 @@ module.exports = [
|
|||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: '../css/[name].css'
|
filename: '../css/[name].css'
|
||||||
}),
|
}),
|
||||||
|
//new BundleAnalyzerPlugin()
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user