diff --git a/README.md b/README.md new file mode 100644 index 0000000..6ef8a2f --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# 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= --css= < +``` diff --git a/example/dist/index.html b/example/dist/index.html new file mode 100644 index 0000000..99b623c --- /dev/null +++ b/example/dist/index.html @@ -0,0 +1,24 @@ + + + + + + + Example + + + + + + + + +
+ + + + +