question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Docs] Webpack config

See original GitHub issue

If 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:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
neilyoungcommented, Feb 25, 2020

In between I downgraded to 5.9.12 and the old patter works too. With Node 10 and 13

0reactions
neilyoungcommented, Feb 25, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found