diff options
| author | ruki <waruqi@gmail.com> | 2018-11-08 00:38:48 +0800 |
|---|---|---|
| committer | ruki <waruqi@gmail.com> | 2018-11-07 21:53:09 +0800 |
| commit | 26105034da4fcce7ac883c899d781f016559310d (patch) | |
| tree | c459a5dc4e3aa0972d9919033ece511ce76dd129 /node_modules/postcss-modules-extract-imports/README.md | |
| parent | 2c77f00f1a7ecb6c8192f9c16d3b2001b254a107 (diff) | |
| download | xmake-docs-26105034da4fcce7ac883c899d781f016559310d.tar.gz xmake-docs-26105034da4fcce7ac883c899d781f016559310d.zip | |
switch to vuepress
Diffstat (limited to 'node_modules/postcss-modules-extract-imports/README.md')
| -rw-r--r-- | node_modules/postcss-modules-extract-imports/README.md | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/node_modules/postcss-modules-extract-imports/README.md b/node_modules/postcss-modules-extract-imports/README.md new file mode 100644 index 00000000..e6dbe2ee --- /dev/null +++ b/node_modules/postcss-modules-extract-imports/README.md @@ -0,0 +1,63 @@ +# CSS Modules: Extract Imports + +[](https://travis-ci.org/css-modules/postcss-modules-extract-imports) + +Transforms: + +```css +:local(.continueButton) { + composes: button from "library/button.css"; + color: green; +} +``` + +into: + +```css +:import("library/button.css") { + button: __tmp_487387465fczSDGHSABb; +} +:local(.continueButton) { + composes: __tmp_487387465fczSDGHSABb; + color: green; +} +``` + +## Specification + +- Only a certain whitelist of properties are inspected. Currently, that whitelist is `['composes']` alone. +- An extend-import has the following format: +``` +composes: className [... className] from "path/to/file.css"; +``` + +## Building + +``` +npm install +npm build +npm test +``` + +[](https://travis-ci.org/css-modules/postcss-modules-extract-imports) + +* Lines: [](https://coveralls.io/r/css-modules/postcss-modules-extract-imports?branch=master) +* Statements: [](http://codecov.io/github/css-modules/postcss-modules-extract-imports?branch=master) + +## Development + +- `npm watch` will watch `src` for changes and rebuild +- `npm autotest` will watch `src` and `test` for changes and retest + +## License + +ISC + +## With thanks + +- Mark Dalgleish +- Tobias Koppers +- Guy Bedford + +--- +Glen Maddern, 2015. |
