Skip to content

Commit 26b5a19

Browse files
authored
Reconfigure the analyzer (#35)
1 parent 70fe500 commit 26b5a19

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"prestart": "npm run tw",
1313
"start": "webpack serve --mode development",
1414
"build": "webpack --mode production",
15-
"postbuild": "npm run tailwind && cp -R ./public/* ./build"
15+
"postbuild": "npm run tw && cp -R ./public/* ./build",
16+
"analyzer": "webpack-bundle-analyzer ./build/stats.json"
1617
},
1718
"dependencies": {
1819
"@babel/core": "^7.23.9",

webpack.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,11 @@ module.exports = {
3636
compress: true,
3737
port: 8080
3838
},
39-
plugins: [new BundleAnalyzerPlugin({ openAnalyzer: false })]
39+
plugins: [
40+
new BundleAnalyzerPlugin({
41+
analyzerMode: 'disabled',
42+
generateStatsFile: true,
43+
openAnalyzer: false
44+
})
45+
]
4046
};

0 commit comments

Comments
 (0)