Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Move to Webpack #109

Open
evanmwillhite opened this issue Feb 7, 2019 · 2 comments
Open

Move to Webpack #109

evanmwillhite opened this issue Feb 7, 2019 · 2 comments

Comments

@evanmwillhite
Copy link
Contributor

We've discussed this in other stories offline, but we don't have an official issue to track it to. I'm interested to explore this and see how it impacts build performance.

@philwolstenholme
Copy link

I'd be really interested in seeing what people come up with for using Webpack in a Drupal theme.

I did some experimentation with Webpack a few months ago, including looking at how Particle handles it, but felt like the idea of having everything in one bundle (or a bundle and a vendor bundle) seems to go against the D8 idea of splitting your FE dependencies into libraries and loading them only on routes that need them. I looked at creating a Webpack bundle for each component or content type, but then you end up with more JS than necessary as there is a fair amount of Webpack boilerplate code added to each bundle, so more bundles == more boilerplate.

I'm sure there's an awesome way of using Webpack but finding it was a bit beyond me at the time!

@athanph
Copy link

athanph commented Feb 26, 2019

Looking forward to moving towards Webpack as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants