postcss-scss

WebJar for postcss-scss

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

2.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

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

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

https://github.com/postcss/postcss-scss

Скачать postcss-scss

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : postcss jar [7.0.6,8)

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

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

PostCSS SCSS Syntax Build Status

A SCSS parser for PostCSS.

This module does not compile SCSS. It simply parses mixins as custom at-rules & variables as properties, so that PostCSS plugins can then transform SCSS source code alongside CSS.

Sponsored by Evil Martians

Install

npm --save install postcss-scss

or (if you use Yarn)

yarn add --dev postcss-scss

Usage

There are two ways to use this parser:

1. SCSS Transformations

The main use case of this plugin is to apply PostCSS transformations directly to SCSS source code.

For example, you can lint SCSS source with Stylelint and linter will automatically fix issues in the source.

// postcss.config.js
module.exports = {
  syntax: 'postcss-scss',
  plugins: {}
}

2. Inline Comments for PostCSS

Also you can use this parser just to add // single-line comment to your PostCSS project (without any Sass):

:root {
    // Main theme color
    --color: red;
}

Note that you don’t need a special stringifier to handle the output; the default one will automatically convert single line comments into block comments.

// postcss.config.js
module.exports = {
  parser: 'postcss-scss',
  plugins: {}
}

If you want Sass behaviour with removing inline comments, you can use postcss-strip-inline-comments plugin.

org.webjars.npm

PostCSS

PostCSS and plugins based on it

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

Версия
2.1.1
2.0.0
0.3.1