Download next.js/test/integration/app-document-import-order/next.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/app-document-import-order/next.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/app-document-import-order/next.config.js
-
curl -L -o next.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/app-document-import-order/next.config.js
1.01 kB
| module.exports = { | |
| webpack: (config, { isServer }) => { | |
| if (!isServer) { | |
| const optimization = config.optimization || {} | |
| const splitChunks = optimization.splitChunks || {} | |
| const cacheGroups = splitChunks.cacheGroups || {} | |
| config.optimization = { | |
| ...optimization, | |
| splitChunks: { | |
| ...splitChunks, | |
| cacheGroups: { | |
| ...cacheGroups, | |
| requiredByApp: { | |
| test: /requiredByApp.js/, | |
| name: 'requiredByApp', | |
| enforce: true, | |
| priority: 10, | |
| chunks: 'all', | |
| filename: 'static/chunks/[name].[chunkhash].js', | |
| }, | |
| requiredByPage: { | |
| test: /requiredByPage.js/, | |
| name: 'requiredByPage', | |
| enforce: true, | |
| priority: 10, | |
| chunks: 'all', | |
| filename: 'static/chunks/[name].[chunkhash].js', | |
| }, | |
| }, | |
| }, | |
| } | |
| } | |
| return config | |
| }, | |
| } | |