d8e
v1.1.4
Published
CLI tool for bundling vanilla/plain HTML, CSS & JS.
Readme
d8e
A CLI tool for bundling/preparing vanilla HTML, CSS & JS for deployment.
Setup
1. npm install -g d8e@latest
2. Structure your codebase like this:
src/
-> index.html
-> style
-> main.css
-> script
-> main.js
-> asset
-> video
-> img
-> font3. Run d8e
How It Works
- Copies
src/todist/ - Deduplicates CSS declarations (via css-dedup), then minifies every JS and CSS file
- Content-hashes each JS/CSS filename and rewrites references to it in the HTML and JS (resolved per referencing file, so same-named files in different folders stay distinct)
- Minifies the HTML
Deploying to npm
- FIRST TIME ONLY: run
npm login - Bump the version in
package.json - Run
npm run deploy
