No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
s2 040e1c6c4f do not loop forever reading config file 7 months ago
example no jquery in dist 7 months ago
node_modules change deps 7 months ago
.babelrc add some babel stuff 7 months ago
.cleancssrc read cleancss options from .cleancssrc file 7 months ago
.jscsrc formatter 7 months ago
README.md example 7 months ago
minifyfromhtml.js do not loop forever reading config file 7 months ago
package-lock.json change deps 7 months ago
package.json do not loop forever reading config file 7 months ago

README.md

minifyfromhtml

This little helper minifies scripts and css starting from an html file. I made it after asking this question on stackoverflow: https://stackoverflow.com/questions/50188269/minify-js-and-css-in-one-go-starting-from-html/

It takes an input html file, parses it, and outputs all included javascript and css files minified to a file you specify:

minifyfromhtml --js=<output js file> --css=<output css file> < <input file>

example:

minifyfromhtml --js=dist/mywidget.min.js --css=dist/mywidget.min.css < example/index.html