mirror of
https://github.com/primer/css.git
synced 2024-08-17 12:10:33 +03:00
* Bump stylelint and stylelint-scss Bumps [stylelint](https://github.com/stylelint/stylelint) and [stylelint-scss](https://github.com/stylelint-scss/stylelint-scss). These dependencies needed to be updated together. Updates `stylelint` from 13.13.1 to 14.0.0 - [Release notes](https://github.com/stylelint/stylelint/releases) - [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md) - [Commits](https://github.com/stylelint/stylelint/compare/13.13.1...14.0.0) Updates `stylelint-scss` from 3.21.0 to 4.0.0 - [Release notes](https://github.com/stylelint-scss/stylelint-scss/releases) - [Changelog](https://github.com/stylelint-scss/stylelint-scss/blob/master/CHANGELOG.md) - [Commits](https://github.com/stylelint-scss/stylelint-scss/compare/3.21.0...v4.0.0) --- updated-dependencies: - dependency-name: stylelint dependency-type: direct:development update-type: version-update:semver-major - dependency-name: stylelint-scss dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Set customSyntax * Update postcss.config.cjs * Remove example code * Fix stylelint config Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Rohan <yes@jonrohan.codes>
23 lines
530 B
JavaScript
23 lines
530 B
JavaScript
const autoprefixer = require('autoprefixer')
|
|
const sass = require('@koddsson/postcss-sass')
|
|
const scss = require('postcss-scss')
|
|
const scssImport = require('postcss-import')
|
|
const {join} = require('path')
|
|
|
|
module.exports = {
|
|
map: {
|
|
sourcesContent: false,
|
|
annotation: true
|
|
},
|
|
customSyntax: scss,
|
|
parser: scss,
|
|
plugins: [
|
|
scssImport,
|
|
sass({
|
|
includePaths: [join(__dirname, 'node_modules')],
|
|
outputStyle: process.env.CSS_MINIFY === '0' ? 'expanded' : 'compressed'
|
|
}),
|
|
autoprefixer,
|
|
]
|
|
}
|