Transforms:
:local(.continueButton) {
extends: button from "library/button.css";
background: red;
}
into:
:import("library/button.css") {
button: __tmp_487387465fczSDGHSABb;
}
:local(.continueButton) {
extends: __tmp_487387465fczSDGHSABb;
background: red;
}
- Only a certain whitelist of properties are inspected. Currently, that whitelist is
['extends']
alone. - An extend-import has the following format:
extends: className [... className] from "path/to/file.css";
npm install
npm build
npm test
-
npm watch
will watchindex.src.js
for changes and rebuild -
npm autotest
will watchindex.src.js
andtest.js
for changes and retest
ISC
- Mark Dalgleish
- Tobias Koppers
- Guy Bedford
Glen Maddern, 2015.