Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable webpackbar for next build #5777

Closed
AndyBitz opened this issue Nov 30, 2018 · 0 comments · Fixed by #5949
Closed

Enable webpackbar for next build #5777

AndyBitz opened this issue Nov 30, 2018 · 0 comments · Fixed by #5949

Comments

@AndyBitz
Copy link
Contributor

Feature request

Is your feature request related to a problem? Please describe.

I've came across the same problem a few times now. Sometimes when building it just hangs and nothings happens anymore, even though everything works fine during development.

I always need to go inside the node_modules folder or download, build and link next.js itself to debug.

For example, I changed packages/next/server/hot-reloader.js:

    const configs = await Promise.all([
      getBaseWebpackConfig(this.dir, { dev: true, isServer: false, config: this.config, buildId: this.buildId }),
      getBaseWebpackConfig(this.dir, { dev: true, isServer: true, config: this.config, buildId: this.buildId })
    ])

I replaced the dev: true with dev: false, started next dev and immediately saw that Terser seems to randomly fail due to this issue.

Describe the solution you'd like

Enable webpackbar for building, maybe with an config option.

Describe alternatives you've considered

Adding a --verbose argument to next build which would log the file that is currently processed etc.

I think this would make solving some issues much easier.

JeroenKnoops added a commit to JeroenKnoops/next.js that referenced this issue Dec 26, 2018
Upgrades webpack from 4.26.0 -> 4.28.2

Adds webpackbar for build. Fixes vercel#5777
timneutkens pushed a commit that referenced this issue Dec 26, 2018
Upgrades webpack from 4.26.0 -> 4.28.2

Adds webpackbar for build. Fixes #5777
@lock lock bot locked as resolved and limited conversation to collaborators Dec 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant