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

Upgrade to webpack 2 in 1.0 branch #461

Closed
f0rr0 opened this issue Sep 24, 2016 · 18 comments
Closed

Upgrade to webpack 2 in 1.0 branch #461

f0rr0 opened this issue Sep 24, 2016 · 18 comments
Labels
help wanted Issue with a clear description that the community can help with.
Milestone

Comments

@f0rr0
Copy link

f0rr0 commented Sep 24, 2016

webpack 2 is fairly stable. Bundle sizes could reduce drastically via tree shaking.

@KyleAMathews
Copy link
Contributor

I'm planning on shipping 1.0 with this. It's only "fairly" stable atm though so don't want to convert over just yet.

@KyleAMathews KyleAMathews added this to the 1.0 milestone Sep 24, 2016
@KyleAMathews KyleAMathews added the help wanted Issue with a clear description that the community can help with. label Sep 26, 2016
@KyleAMathews KyleAMathews changed the title Upgrade to webpack 2 Upgrade to webpack 2 in 1.0 branch Oct 12, 2016
@mgamsjager
Copy link
Contributor

Regarding this issue: #445

Maybe the migration to webpack 2 resolved the memory issue as well.

@KyleAMathews
Copy link
Contributor

Perhaps but I doubt it — it seems like that's a core design decision (which I agree with fwiw) so it's probably stayed.

@fitzk
Copy link

fitzk commented Jan 8, 2017

Hey there, has anyone picked up this ticket? If not, I can take it, I would love to contribute.

@KyleAMathews
Copy link
Contributor

@fitzk nope! Not yet! Feel free to take it on. Though you'll probably want to hit me up in Discord to chat about things as 1.0 is still a moving target. Thanks!

@fitzk
Copy link

fitzk commented Jan 8, 2017

For sure, thanks!

@designorant
Copy link

There's a very helpful guide for this: https://webpack.js.org/guides/migrating/

@akadop
Copy link
Contributor

akadop commented May 4, 2017

Any progress on this? I'm finding it difficult to wrap my head around the stages (build-css, build-html, etc). Are they actively used? If not, perhaps just a standard dev / production config will work so that we can reap the benefits of webpack 2

@KyleAMathews
Copy link
Contributor

@akadop not yet. It'll come though as part of the 1.0 release.

The stages are a necessary part of how Gatsby works.

We have to have at least two stages for building JavaScript bundles and HTML as they're very different way so using webpack. We added the CSS as an optimization so that we could easily inline CSS in the <head> of websites. See #145

@MoOx
Copy link

MoOx commented Aug 10, 2017

FYI webpack 3 is out for a while now :) (as I am writing 3.5.x)

@LegNeato
Copy link
Contributor

FYI, not having treeshaking with a newer webpack currently makes any site using gatsby with material-ui (a fairly popular UI lib) bloated.

@KyleAMathews
Copy link
Contributor

@LegNeato hoping to get Gatsby v2 with webpack 3 out in the next few weeks! @jquense has much of the work done already! Would love your help testing out alphas/betas. There's already alphas out and you can check out the work on the v2 branch.

Closing this issue since we're not going to upgrade to webpack 3 for 1.x

@monsieurnebo
Copy link
Contributor

monsieurnebo commented Dec 1, 2017

Hello !

Any news about the Webpack update progress? I'm stuck with some dependencies that need Webpack v2+ 😐

@KyleAMathews
Copy link
Contributor

Still a bit off. @jquense has done a lot of the work but there's some other things I want to do for v2 that we're blocked on. I can't get to working on the upgrade for another couple weeks probably. My plan/hope is to have the release done by Christmas.

@calpa
Copy link
Contributor

calpa commented Dec 7, 2017

FYI, for those who want dynamic import, just wait for gatsbyjs to upgrade webpack version.

@felipearosemena
Copy link

Any news on upgrading webpack?

@monsieurnebo
Copy link
Contributor

@felipearosemena It should come with Gatsby v2.

@m-allanson
Copy link
Contributor

See #4588

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issue with a clear description that the community can help with.
Projects
None yet
Development

No branches or pull requests