Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Hugo starter kit with npm scripts, webpack, PostCSS, and a service worker for offline support (not maintained).
blaupause is a Hugo starter kit that bundles npm scripts, webpack 4, Babel 7, and PostCSS into a single build pipeline, and adds offline support through a service worker so the resulting static site works as a basic PWA.
blaupause is a Hugo starter kit maintained on GitHub by fspoettel (the repository is explicitly marked as not maintained, with a recommendation to use Netlify's victor-hugo template instead). It takes Hugo source files—layouts, content, and assets in a src directory—and outputs an optimized static site into public. The build is orchestrated entirely with npm scripts and the nps task runner, with tasks defined in package-scripts.js and exposed through npm start, npm run build, and related commands. It also includes a development server and production build modes that differ in sourcemaps, minification, draft handling, and service worker inclusion.
After cloning the repository, run npm install; if the hugo binary is not on your PATH, it is downloaded automatically during install. Then npm start launches the development server, and npm run build generates a production-ready build in the public folder. Task configuration lives in package-scripts.js, and the build script removes the public folder first, applies the production baseUrl, and strips debug statements.
fspoettel recommends victor-hugo, a maintained Hugo/webpack starter kit from Netlify, as the replacement for blaupause. The repository is explicitly marked [NOT MAINTAINED], so new projects should consider that template instead.
You need NodeJS installed, then clone the repository, run npm install (which also installs the hugo binary if it is missing from your PATH), and finally run npm start to launch the development server.
Run npm run build. It compiles content and assets from src to public, applies the production baseUrl, excludes draft entries, omits sourcemaps, minifies JS and CSS, and adds a service worker.
Yes. The README includes a one-click Deploy to Netlify button and instructions to add Netlify CMS by copying an admin/index.html and config.yml into the hugo/static/admin directory.
The included service worker follows a networkFirst strategy for static files and a cacheFirst strategy for images and Google Fonts. After the first visit, visited pages work offline, and assets are served from cache when no network is available.