Skip to content

Instantly share code, notes, and snippets.

@vbarbarosh
Last active June 13, 2019 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vbarbarosh/8aa605fce1d2b28c4d0cc6b0819223f0 to your computer and use it in GitHub Desktop.
Save vbarbarosh/8aa605fce1d2b28c4d0cc6b0819223f0 to your computer and use it in GitHub Desktop.
css_autoprefixer_clean – Remove prefixes from 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
# Remove prefixes from css
#
# usage
# $ cat a.css | ./css_autoprefixer_clean > out.css
#
# before begin
# $ npm install -g postcss-cli autoprefixer
# https://stackoverflow.com/a/39670269/1478566
BROWSERSLIST='>100%' postcss -u autoprefixer --no-map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment