Words
Words lets you transform CSS words into custom values in CSS.
/* before */ /* after */
Options
words
Type: Object|String
Default: .csswords.json
The file or object to reference when updating CSS words.
functions
Type: Array|String
Default: ["url"]
A list of functions to avoid parsing within.
Usage
Add Words to your build tool:
npm install postcss-words --save-dev
Node
;
PostCSS
Add PostCSS to your build tool:
npm install postcss --save-dev
Load Words as a PostCSS plugin:
;
Gulp
Add Gulp PostCSS to your build tool:
npm install gulp-postcss --save-dev
Enable Words within your Gulpfile:
var postcss = ; gulp;
Grunt
Add Grunt PostCSS to your build tool:
npm install grunt-postcss --save-dev
Enable Words within your Gruntfile:
grunt; grunt;