I wrote an article for Forestry.io about an open source CLI tool called Create Static Site. This tool sets up a new Hugo site with an asset processing pipeline featuring postcss, webpack, babel, and some other goodies.
It’s an opinionated configuration by design; it follows create react app’s philosophy of no configuration. Check out the blog post and give it a try!
Yes, you are right, it is opinionated. Nothing wrong with that I suppose.
My own thoughts:
Do we really want yet another tool in the chain npx - isn’t npm run enough?
Looks like it won’t run under Windows
However, thanks for posting, I will certainly have a look at the script. I’ve not yet found a compelling reason to need a webpack toolchain for my simplistic websites but I anticipate it will happen eventually.
I like the idea, though I dislike the idea of using gulp. I’ve tried to make it a point to avoid its introduction in new projects to avoid the extra layer of indirection and needing a host of plugins.
But annoyingly, it doesn’t work properly under Windows. They’ve made some assumptions about default file associations that are incorrect. Expect they will sort it out eventually.
It looks like the latest update has caused some problems. I’ll post in here once it all gets sorted out; feel free to post an issue in the meantime if you’re encountering a problem that hasn’t been brought up in there yet.