1.0.4 • Published 5 years ago
postcss-scss-inline-comments v1.0.4
postcss-scss-inline-comments
PostCSS plugin to convert css multiline comments to sass inline comments.
Installation
With yarn
$ yarn add postcss-scss-inline-comments
Or npm
:
$ npm install --save postcss-scss-inline-comments
Usage
const fs = require('fs'),
postcss = require('postcss'),
syntax = require('postcss-scss'),
inlineComments = require('postcss-scss-inline-comments')
const scss = fs.readFileSync('scss/input.scss', 'utf-8')
postcss([inlineComments()]).process(scss, {
syntax: syntax,
from: 'scss/input.scss',
})
scss/input.scss
:
/**
* A mixin for important things.
*/
@mixin a-mixin {
color: red;
}
Will give you:
//
// A mixin for important things.
//
@mixin a-mixin {
color: red;
}
For more information see the scss-extractor documentation.
1.0.4
5 years ago
1.0.3
5 years ago
1.0.3-alpha.2
5 years ago
1.0.2
5 years ago
1.0.2-alpha.1
5 years ago
1.0.2-alpha.13
5 years ago
1.0.2-alpha.0
5 years ago
1.0.1-1.0.0-alpha.0.0
5 years ago