[Docs] Webpack config
See original GitHub issueIf you haven’t dealt with react-static for a while, it always surprises you…
OK, I have an old project, which has this static-config.js
:
export default {
webpack: (config, { stage }) => {
if (stage === 'prod') {
config.performance = {
maxEntrypointSize: 512000,
maxAssetSize: 512000
}
config.stats = {
warnings: false
}
}
return config
}
}
I’m now running react-static-cli 5.9.12 under node 13.9.0, but this seems to not work anymore. At least if I try to intercept the stuff by adding a console.log(), it does not appear.
Please, how do I have to do that?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Configuration - webpack
createapp.dev is an online tool for creating custom webpack configurations. It allows you to select various features that will be combined and added...
Read more >configuration · webpack/docs Wiki - GitHub
The publicPath specifies the public URL address of the output files when referenced in a browser. For loaders that embed <script> or <link>...
Read more >An Introduction to Webpack Configs - Mastering JS
Webpack configs allow you to configure and extend Webpack's basic functionality. A Webpack config is a JavaScript object that configures one ...
Read more >Custom Webpack Config - Next.js
Custom Webpack Config · buildId : String - The build id, used as a unique identifier between builds · dev : Boolean -...
Read more >Using with webpack - Jest
A webpack example ... Let's start with a common sort of webpack config file and translate it to a Jest setup. ... 'node_modules',...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In between I downgraded to 5.9.12 and the old patter works too. With Node 10 and 13
No, doesn’t work. But I realized, I was just thinking I was running 5.9.12. In fact it is 7… So I have to use the new pattern.
Thanks