ComboHTML
Combo your HTML files, make scripts(.js) and stylesheets(.css) inline.
Quick start
There are 3 directives: inline
, compress
, remove
, and support all HTML tags.
- if the tag is
<link>
,<style>
, or<script>
, it's accepted all 3 directives, - otherwise it's accepted
compress
andremove
<!-- inline remote file only --> <!-- inline and compress local file --> <!-- compress inline code --> <!-- remove test/mock tag --> <!-- compress html, maybe you'd like to add the directive to `<html>` or `<body>` tag --> whatever...
Install
First, make sure your Node.js >= 4
.
npm install combohtml
Command line usage
# process specified file combohtml -i index.html -o dist.html # process mutiple files combohtml --input 'src/**/*.html' --output dist
Command line options
-i, --input <input> Input file-o, --output <output> Output directory or file name-r, --root [root] Files root path, default to current working directory