Last active
June 13, 2019 20:21
-
-
Save vbarbarosh/8aa605fce1d2b28c4d0cc6b0819223f0 to your computer and use it in GitHub Desktop.
css_autoprefixer_clean – Remove prefixes from 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 | |
# 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