fourkitchens / emulsify-gulp

Gulp setup to be used with https://github.com/fourkitchens/emulsify
19 stars 46 forks source link

Move to Webpack #109

Open evanmwillhite opened 5 years ago

evanmwillhite commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Looking forward to moving towards Webpack as well.