postcss/postcss-scss
소개
PostCSS용 SCSS 파서입니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalPostCSS SCSS Syntax
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.
Install
npm --save install postcss 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.
Security Contact
To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.
관련 프로젝트 살펴보기
불러오는 중…