Created
June 10, 2016 14:56
-
-
Save ben-eb/6688e0cf88b4b48bc7480d75442b4b24 to your computer and use it in GitHub Desktop.
PostCSS CLI & cssnano example
This file contains hidden or 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
h1 { | |
display: flex; | |
} |
This file contains hidden or 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
{ | |
"name": "postcss-cli-cssnano-gist", | |
"private": true, | |
"scripts": { | |
"compile": "postcss -c postcss.json", | |
"watch": "postcss -c postcss.json -w" | |
}, | |
"devDependencies": { | |
"autoprefixer": "^6.3.6", | |
"cssnano": "^3.7.0", | |
"postcss-cli": "^2.5.2" | |
} | |
} |
This file contains hidden or 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
{ | |
"use": ["autoprefixer", "cssnano"], | |
"input": "in.css", | |
"output": "out.css", | |
"autoprefixer": { | |
"browsers": "> 5%" | |
}, | |
"cssnano": { | |
"autoprefixer": false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment