Last active
February 22, 2019 07:35
-
-
Save egoist/45c5b32388f668b6b717ae55bc4b6368 to your computer and use it in GitHub Desktop.
postcss load plugin
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
npm i -g postcss-cli | |
postcss in.css -o out.css |
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
body { | |
h1 { | |
color: red; | |
} | |
} |
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": "xxx", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"postcss": { | |
"plugins": { | |
"postcss-nested": {} | |
} | |
}, | |
"devDependencies": { | |
"postcss-nested": "^1.0.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment