1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-02 20:00:05 +02:00
2018-05-08 19:08:46 +02:00
2018-05-05 16:42:53 +02:00
2018-05-05 15:56:48 +02:00
2018-05-05 15:35:25 +02:00
2018-05-05 14:11:12 +02:00
2018-05-08 19:08:46 +02:00
2018-05-05 15:56:48 +02:00
2018-05-05 15:56:48 +02:00
2018-05-05 16:43:53 +02:00

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
Description
No description provided
Readme 24 MiB
Languages
JavaScript 74.7%
HTML 21.4%
CSS 3.9%