@yesiree/htmlc

0.0.10 • Public • Published

htmlc

A simple tool for compiling HTML files

API

Example

import { htmlc } from '@yesiree/htmlc'

htmlc({
  src: 'src/index.html', // default: 'src/index.html'
  out: 'out/index.html, // default: 'out/index.html'
  watch: true, // default: false
  minify: true // default: false
}) // returns: Promise<chokidar.FSWatcher | void>

CLI

Install Globally:

$ npm i -g @yesiree/htmlc

Compile src/index.html

Syntax: htmlc [-s|-src|-source src/index.html] [-o|-out|-output out/index.html] [-w|-watch] [-m|-minify]

Example

$ htmlc -s index.html -m

Package Sidebar

Install

npm i @yesiree/htmlc

Weekly Downloads

0

Version

0.0.10

License

MIT

Unpacked Size

16.1 kB

Total Files

6

Last publish

Collaborators

  • trevorhreed