1
1
mirror of https://github.com/primer/css.git synced 2024-11-29 14:14:26 +03:00
css/postcss.config.cjs

23 lines
531 B
JavaScript
Raw Normal View History

2021-10-02 02:22:30 +03:00
const autoprefixer = require('autoprefixer')
const sass = require('@csstools/postcss-sass')
2021-10-02 02:22:30 +03:00
const scss = require('postcss-scss')
const scssImport = require('postcss-import')
const { join } = require('path')
2021-10-02 02:22:30 +03:00
module.exports = {
map: {
sourcesContent: false,
annotation: true
},
customSyntax: scss,
2021-10-02 02:22:30 +03:00
parser: scss,
plugins: [
scssImport,
sass({
includePaths: [join(__dirname, 'node_modules')],
outputStyle: process.env.CSS_MINIFY === '0' ? 'expanded' : 'compressed'
}),
autoprefixer
2021-10-02 02:22:30 +03:00
]
}