sondr3 / generator-jekyllized

A Yeoman generator for Jekyll to rapidly build sites using Gulp
MIT License
326 stars 35 forks source link

Upgrade gulp and webpack #168

Open sondr3 opened 6 years ago

sondr3 commented 6 years ago

Food for thought

We could probably get away with just using Webpack for bundling CSS, images and JS etc and then having a few NPM scripts that run that'll keep everything synced up nicely. For example:

"scripts": {
    "predev": "jekyll build --watch --incremental",
    "dev": "webpack --watch --i-dont-know-webpack"
}

Would first start Jekyll, and have it watch the src/ directory in the background and then start up Webpack with it's dev server and such. Similarly, we'd have a command for when you want to optimize everything, probably called prod or something like that. We'll have to look into it.