Minify files recursively in src/: $ minify -r -o out/ src Minify files in the current working directory to out/ (no subdirectories): $ minify -o out/. You can also give directories as input, and these directories can be minified recursively. $ cat script.js | minify -type=js > script-min.js You need to set the type or the mimetype option when using standard input: $ minify -mime=application/javascript script-min.js Normally the mimetype is inferred from the extension, to set the mimetype explicitly: $ minify -type=html -o index-min.tpl index.tpl Minify index.html to standard output (leave -o blank): $ minify index.html Minify index.html to index-min.html: $ minify -o index-min.html index.html xml-keep-whitespace Preserve whitespace characters but still collapse multiple into oneįiles or directories, leave blank to use stdin w, -watch Watch files and minify upon changes url string URL of file to enable URL minification svg-decimals int Number of decimals to preserve in numbers, -1 is all (default -1) r, -recursive Recursively minify directories o, -output string Output file or directory (must have trailing slash), leave blank to use stdout text/css), optional for input filenames, has precedence over -type match string Filename pattern matching using regular expressions html-keep-whitespace Preserve whitespace characters but still collapse multiple into one html-keep-end-tags Preserve all end tags html-keep-document-tags Preserve html, head and body tags html-keep-default-attrvals Preserve default attribute values html-keep-conditional-comments Preserve all IE conditional comments css-decimals int Number of decimals to preserve in numbers, -1 is all (default -1) a, -all Minify all files, including hidden files and files in hidden directories You can enable bash tab completion by using source minify_bash_tab_completion Run the following command go get /tdewolff/minify/cmd/minifyĪnd the minify command will be in your $GOPATH/bin. Minify is a CLI implementation of the minify library package. #Minify minecraft command downloadDownload binaries for Windows, Linux and macOS
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |