Webpack frontend boilerplate like Sage 9?


Now that i am getting used to all the nice stuff we get for free with Sage 9 (webpack, es6, stylelint, etc.) i would love to have the same things for a simple HTML, non WordPress project.

I used to have my own Gulp setup for this, but am too lazy to do this again with Webpack :blush:

Do you have any personal recommandation for a Webpack boilerplate setup that would offer more or less the same features as Sage 9, but without WordPress?


If you don’t want to learn webpack — it can be daunting — I’d recommend Laravel Mix. It’s a wrapper around webpack that provides a much simpler API.

Personally, I’d recommend learning webpack and building something yourself. It’s a lot of fun. :stuck_out_tongue_winking_eye:

There are a couple of Laravel Mix boilerplates for Jekyll if that’s your bag:

I used the first one for a recent project and it went great.

1 Like

Thanks this is a great idea, i already used it with my Laravel projects so that makes sense :slight_smile:

Jigsaw (http://jigsaw.tighten.co) is a static site generator built with PHP that uses Blade and Laravel Mix, providing a somewhat Sage 9 like environment. I’ve been using it recently to build static web apps (training courses) and am quite happy with it.

And what knowler said!

I would like to use Laravel Mix with Sage 9. I noticed that there is a fork on Github.

How easy is it to get Laravel mix working with Vanilla Sage 9 @knowler?

There’s also https://github.com/roots/sage/pull/2011

FWIW, @QWp6t has changes coming to the build system that includes support for Webpack 4, which is still not supported by Laravel Mix

That’s too bad.

I just read through https://github.com/JeffreyWay/laravel-mix/pull/1495 and it seems that we may have to wait for Webpack 5 before Laravel Mix gets updated.

The ability to have a single build system across Jigsaw, Roots and Laravel would be awesome.

i might be able to contribute to laravel-mix to help them get it working with webpack 4, but that would have to wait until after i finish sage 10 stuff, and it would most likely have to wait until december or late november.

1 Like