Skip to content

Instantly share code, notes, and snippets.

@vbarbarosh
Last active June 11, 2019 18:06
Show Gist options
  • Save vbarbarosh/5fa5731bfa690275c9cd796681506ebe to your computer and use it in GitHub Desktop.
Save vbarbarosh/5fa5731bfa690275c9cd796681506ebe to your computer and use it in GitHub Desktop.
css_minify_optimize – How to minify css https://codescreens.com
#!/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