Last active
June 11, 2019 18:06
-
-
Save vbarbarosh/5fa5731bfa690275c9cd796681506ebe to your computer and use it in GitHub Desktop.
css_minify_optimize – How to minify css https://codescreens.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://www.gnu.org/software/bash/manual/bash.html#The-Set-Builtin | |
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
set -o nounset -o errexit -o pipefail | |
# How to minify css | |
# | |
# usage | |
# $ cat a.css | ./css_minify_optimize > out.css | |
# | |
# before begin | |
# $ npm install -g csso-cli | |
csso | |
# https://github.com/css/csso | |
# https://github.com/cssnano/cssnano | |
# https://github.com/jakubpawlowicz/clean-css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment