1.0.2 • Published 8 years ago
postcss-forced-variables v1.0.2
The plugins purpose is to help enforce more consistent SASS-like variable usage in stylesheets.
E.g 1) The following will generate a warning stating that a variable could be used here.
ruleset : 'color', variables : {$white : #fff'} used to process the css:
body {
color: #fff;
}
E.g. 2) The following will throw an error stating that a variable should be used here.
ruleset : 'color', variables : {$white : #fff'} used to process the css:
body{
color : red; }
variables : { '$variableName' : 'variableValue}
}
Setup is complete. Further details can be seen in gulp test examples.
Feel free to e-mail me at alekhrycaiko@gmail.com with any suggestions or questions!