Last active
June 12, 2019 19:59
-
-
Save vbarbarosh/4ed06a94a8a0694b1ac1396f3498b62a to your computer and use it in GitHub Desktop.
css_autoprefixer – How to add prefixes to 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 add prefixes to css | |
# | |
# usage | |
# $ cat a.css | ./css_autoprefixer > out.css | |
# | |
# before begin | |
# $ npm install -g postcss-cli autoprefixer | |
BROWSERSLIST='last 4 version' postcss -u autoprefixer --no-map |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment