Download next.js/test/integration/bundle-size-profiling/next.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/bundle-size-profiling/next.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/bundle-size-profiling/next.config.js
-
curl -L -o next.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/bundle-size-profiling/next.config.js
482 Bytes
| module.exports = { | |
| webpack(config, options) { | |
| if (!options.isServer) { | |
| config.profile = true | |
| const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer') | |
| config.plugins.push( | |
| new BundleAnalyzerPlugin({ | |
| generateStatsFile: true, | |
| analyzerMode: 'static', | |
| reportFilename: options.isServer | |
| ? '../analyze/server.html' | |
| : './analyze/client.html', | |
| }) | |
| ) | |
| } | |
| return config | |
| }, | |
| } | |