Big update!Introducing GitHub Bot Commands. Learn more
Socket
BlogLoveLog in
Book a demo

postcss-modules-extract-imports

Package Overview
Dependencies
0
Maintainers
5
Versions
18
Issues
File Explorer

Advanced tools

postcss-modules-extract-imports

A CSS Modules transform to extract local aliases for inline imports

    3.0.0latest

Version published
Maintainers
5
Weekly downloads
18,031,529
increased by1.46%

Weekly downloads

Changelog

Source

3.0.0 - 2020-10-13

Fixes

  • compatibility with plugins other plugins

Readme

Source

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";

Options

  • failOnWrongOrder bool generates exception for unpredictable imports order.
.aa { composes: b from "./b.css"; composes: c from "./c.css"; } .bb { /* "b.css" should be before "c.css" in this case */ composes: c from "./c.css"; composes: b from "./b.css"; }

Building

npm install npm test

Build Status

  • Lines: Coverage Status
  • Statements: codecov.io

License

ISC

With thanks

  • Mark Dalgleish
  • Tobias Koppers
  • Guy Bedford

Glen Maddern, 2015.

Keywords

FAQs

What is postcss-modules-extract-imports?

A CSS Modules transform to extract local aliases for inline imports

Is postcss-modules-extract-imports popular?

The npm package postcss-modules-extract-imports receives a total of 17,426,443 weekly downloads. As such, postcss-modules-extract-imports popularity was classified as popular.

Is postcss-modules-extract-imports well maintained?

We found that postcss-modules-extract-imports demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 5 open source maintainers collaborating on the project.

Last updated on 13 Oct 2020
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc