Skip to content

Instantly share code, notes, and snippets.

@vbarbarosh
Last active June 12, 2019 19:59
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/4ed06a94a8a0694b1ac1396f3498b62a to your computer and use it in GitHub Desktop.
Save vbarbarosh/4ed06a94a8a0694b1ac1396f3498b62a to your computer and use it in GitHub Desktop.
css_autoprefixer – How to add prefixes to 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 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