postcss-modules-parser

WebJar for postcss-modules-parser

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

postcss-modules-parser
Последняя версия

Последняя версия

1.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

postcss-modules-parser
WebJar for postcss-modules-parser
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/css-modules/postcss-icss

Скачать postcss-modules-parser

Как подключить последнюю версию

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

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.webjars.npm : icss-replace-symbols jar [1.0.2,2)
org.webjars.npm : lodash.foreach jar [3.0.3,4)
org.webjars.npm : postcss jar [5.0.10,6)

Модули Проекта

Данный проект не имеет модулей.

postcss-icss

A CSS Modules parser to extract tokens from the css file. Provides opportunity to process multiple files.

API

In order to use it you should provide a fetch function which should load contents of files and process it with the PostCSS instance. fetch function should return promise object which will resolve into tokens.

const ICSS = require('postcss-icss');

function fetch(importee, importerDir, processor) {
  // load content
  return processor.process(css, { from: filename })
    .then(result => result.messages.find(d => d.type === "icss").exportTokens);
}

postcss([ ICSS({ fetch }) ]);
org.webjars.npm

Версии библиотеки

Версия
1.1.1