pure-html
Sometimes you just want to create a standard html file with no dependencies, this little plugin helps you do just that with hot-reloading of html and css!
Go from this:
index.html
Test
style.css
body, html { display: flex; background: blue;}
script.js
console.log('Hello World!');
To this:
index.html
Test
Features
- Inline css and js
- Hot-reloading of html and css
- Css autoprefixer
- Html Validation
Requirements
- Node 8 >=
Usage
Usage: pure-html [options] Command line tool for creating standalone html files. Options: -V, --version output the version number -w, --watch start browsersync. [boolean] [default: false] -s, --src [path] source folder. [string] [default: current working directory] -d, --dest <path> output folder. [string] [required] -p, --port [port] port browswersync listens on. [integer] [default: 3000] -l, --html-lint enable HTML lint. [boolean] [default: false] -h, --help output usage information Examples: $ pure-html -w -p 8000 -s src -d dist $ pure-html -d output-folder
Additionally, I can recommend Base 64 encoding in-case you want to inline svg's.
Development
Follows Conventional Commits.