3.1.0 • Published 22 days ago

postcss-modules-extract-imports v3.1.0

Weekly downloads
11,833,848
License
ISC
Repository
github
Last release
22 days ago

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",  className [... className], className [... className] from global;

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.

css-loaderpostcss-modulescomponennenttvuedragdropuploadimagescloud-archive-s3bb-chat@fundefund/funde_cksxyj_taro_cligql_din_mod@l1nyanm1ng/react-picture-viewer@olivervorasai/slidercbmis-ai-toolboxcogoportutils@infinitebrahmanuniverse/nolb-postcss-m@saaspe/componentsexpand-react-bridgesklif-ui-kitsklif-api@everything-registry/sub-chunk-2461@cositehq/typed-css-modules@314oner_npm/universal-components-libraryp149-tabletest-popupssklif-ui@ikon-x/ckeditor5-custom-build-for-irrosoft@ibrahimcesar/middy-idempotent@hieuquang2212/form@harsha-jalan/ckeditor5-custom-build@gtarojs/cli@hoaitt/ckeditor5-build-classic-mention@img-arena/img-ui-mui-theme@img-arena/ui-core@jackfranklin/css-loader-fork@jackfranklin/css-loader-with-module-mapping@itsridhopratama/taman-baca-masyarakat@jarrydark/editorsimplejs@mathu01/gdpr-consent@koga73/css-loader@lohek/babel-plugin-react-css-modules@jtmi/css-loader@junvary/quasar-ui-qcascader@juanaraneta/dept-central-lib-client@meysam213/react-leaflet@mlz/babel-plugin-react-css-modules@mmmcorp/css-loader@ngxvoice/ngx-voicelistner@lego-js/tests@kandebr/css-modules-loader-core@juanzenn/ckeditor5-custom-build@leiyulf/gantt-task-react@gem-mine/rollup-plugin-styles@luciadias/storybook-notimation@lozzychops/dropdown-menu@me6iaton/rollup-plugin-styles@marinaga/bananize@hazyflame/vue-jitsi-meet@graines-digitales/nice-handsome-button@hylo/babel-plugin-react-css-modules@hproinformatica/functions@humanity.cash/types@mpxjs/webpack-plugin@microsoft/sp-css-loader@mayuriachewad/pickupbiz-npm-package@nodecraft/css-loadernextjs-storieszzzxxxyyy321123yan-css-loaderyntemp@skeetboothppq/component-library@vasosolo/multiselectcombobox@openpolitica/matomo-next@percent/percent-api-hooks@podlubnaja/ui-kit@synthit/nested-list@startupjs/babel-plugin-react-css-modules@stasa87/react-insta-stories@shivarajapple/first-library@stansaal/ckeditor5-custom-build@silver0542/directus-extension-cma-components-editordynamic-ui-practice@wenziguo/tarojs-cli@wixc3/postcss-modules@reshadow/babel@qilv/babel-plugin-react-css-modules@rune-ts/server@rurquia/css-modules-require-hook@object-studio/react-native-web@purnasatria/directus-extension-document-interface@refactorpro/pixi-virtual-joystick@sanity/css-loader@sak1sham/react-toc-highlight@kristoffertonning/vue-laravel-errors@knooks/use-title@kommunicate/kommunicate-chatbot-plugin@kitten-team/babel-plugin-react-css-modules@kirrosh/pts@itayn-fireberry-org/itayn-test@ironkinoko/rollup-plugin-styles@ozancakir/ckeditor5-build-inline-balloon@pinweb/cli
3.1.0

22 days ago

3.0.0

4 years ago

3.0.0-rc.3

4 years ago

3.0.0-rc.1

4 years ago

3.0.0-rc.0

4 years ago

2.0.0

5 years ago

1.2.1

5 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

8 years ago

1.0.0

9 years ago

1.0.0-beta2

9 years ago

0.0.6

9 years ago

1.0.0-beta1

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago