Local and Webpack Dev Server (or Grunt or Gulp Servers)

Hey @TiagoPires

There isn’t an official “Local way” of doing this, but I’ve had success using the Sage Starter theme which uses WebPack.

The folder structure may seem a little odd if you are used to having the build config in the main folder, but Sage puts the actual webpack config in resources/assets/build: https://github.com/roots/sage/tree/master/resources/assets/build

Note that WebPack is making use of the values set in the resources/assets/config.json https://github.com/roots/sage/blob/master/resources/assets/config.json

If you are hand building the WebPack config – that’s definitely tricky, but you’ll learn a lot! I’d say take Sage for a spin and see how you like it. There might be some gems that can be used in your own project.

– Ben