postcss-modules-extract-imports

WebJar for postcss-modules-extract-imports

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

postcss-modules-extract-imports
Last Version

Last Version

3.0.0-rc.3
Release Date

Release Date

Type

Type

jar
Description

Description

postcss-modules-extract-imports
WebJar for postcss-modules-extract-imports
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/css-modules/postcss-modules-extract-imports

Download postcss-modules-extract-imports

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/postcss-modules-extract-imports/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>postcss-modules-extract-imports</artifactId>
    <version>3.0.0-rc.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/postcss-modules-extract-imports/
implementation 'org.webjars.npm:postcss-modules-extract-imports:3.0.0-rc.3'
// https://jarcasting.com/artifacts/org.webjars.npm/postcss-modules-extract-imports/
implementation ("org.webjars.npm:postcss-modules-extract-imports:3.0.0-rc.3")
'org.webjars.npm:postcss-modules-extract-imports:jar:3.0.0-rc.3'
<dependency org="org.webjars.npm" name="postcss-modules-extract-imports" rev="3.0.0-rc.3">
  <artifact name="postcss-modules-extract-imports" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='postcss-modules-extract-imports', version='3.0.0-rc.3')
)
libraryDependencies += "org.webjars.npm" % "postcss-modules-extract-imports" % "3.0.0-rc.3"
[org.webjars.npm/postcss-modules-extract-imports "3.0.0-rc.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

org.webjars.npm

Versions

Version
3.0.0-rc.3
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0