Force minify file with unsupported extension
zefir-git opened this issue · 4 comments
I was surprised to find out that minify refuses to minify .ejs files (which essentially are HTML) and I assume this is determined by the file extension, as the file Content-Type is text/html.
It would be particularly handy to be able to force minify a file, i.e. by providing the type with an additional argument. For instance
minify index.ejs --type html
minify file --type js
etc.
Do let me know if I shall make a PR.
This is amazing idea for a Pull Request :)! minify
should definitely support ejs
, and other unknown files according to passed type.
I see that in help
the arguments --html
, --css
and --js
are already supported. Should I use these?
I see that in help the arguments --html, --css and --js are already supported. Should I use these?
Yes, it runs minifying according to supported types