Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

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
    Github

Version published
Maintainers
5
Weekly downloads
18,528,128
increased by0.9%

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,822,562 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

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc