Closed carlhopf closed 7 years ago
give other plugins access variable name/values.
as an example, for https://github.com/carlhopf/postcssify2 this enables the following usage
vars.css
$color: green; $width: 100px;
index.js
const vars = require('./vars.css'); // 'green' console.log(vars.color); // '100px' console.log(vars.width);
Wow, good idea!
Released in 4.1
give other plugins access variable name/values.
as an example, for https://github.com/carlhopf/postcssify2 this enables the following usage
vars.css
index.js