postcss-modules-extract-imports
A CSS Modules transform to extract local aliases for inline imports
Last updated 7 years ago by sullenor .
ISC · Repository · Bugs · Original npm
$ cnpm install postcss-modules-extract-imports 
SYNC missed versions from official npm registry.

CSS Modules: Extract Imports

Build Status

Transforms:

:local(.continueButton) {
  composes: button from "library/button.css";
  color: green;
}

into:

: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

Build Status

  • Lines: Coverage Status
  • Statements: codecov.io

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.

Current Tags

  • 1.0.0-beta1                                ...           beta (10 years ago)
  • 3.0.0                                ...           latest (5 years ago)
  • 3.0.0-rc.3                                ...           next (5 years ago)

8 Versions

  • 3.0.0-rc.3                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 1.0.0-beta2                                ...           10 years ago
  • 1.0.0-beta1                                ...           10 years ago
  • 1.1.0                                ...           8 years ago
  • 0.0.5                                ...           10 years ago
  • 1.2.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org