Spaces:
Sleeping
Sleeping
Download frontend-backup/webpack-bundle-analyzer.js from edichat/edi.chat.test: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/spaces/edichat/edi.chat.test/resolve/main/frontend-backup/webpack-bundle-analyzer.js
- Command line
-
hf download hf://spaces/edichat/edi.chat.test/frontend-backup/webpack-bundle-analyzer.js
-
curl -L -o webpack-bundle-analyzer.js https://huggingface.co/spaces/edichat/edi.chat.test/resolve/main/frontend-backup/webpack-bundle-analyzer.js
840 Bytes
| const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); | |
| module.exports = { | |
| webpack: { | |
| plugins: [ | |
| new BundleAnalyzerPlugin({ | |
| analyzerMode: 'static', | |
| openAnalyzer: false, | |
| reportFilename: 'bundle-report.html' | |
| }) | |
| ], | |
| configure: (webpackConfig) => { | |
| // Optimize chunks | |
| webpackConfig.optimization = { | |
| ...webpackConfig.optimization, | |
| splitChunks: { | |
| chunks: 'all', | |
| cacheGroups: { | |
| vendor: { | |
| test: /[\\/]node_modules[\\/]/, | |
| name: 'vendors', | |
| chunks: 'all', | |
| }, | |
| mui: { | |
| test: /[\\/]node_modules[\\/]@mui[\\/]/, | |
| name: 'mui', | |
| chunks: 'all', | |
| } | |
| } | |
| } | |
| }; | |
| return webpackConfig; | |
| } | |
| } | |
| }; |