mirror of
https://github.com/primer/css.git
synced 2024-12-02 07:53:06 +03:00
23 lines
524 B
JavaScript
23 lines
524 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
|
|
},
|
|
syntax: scss,
|
|
parser: scss,
|
|
plugins: [
|
|
scssImport,
|
|
sass({
|
|
includePaths: [join(__dirname, 'node_modules')],
|
|
outputStyle: process.env.CSS_MINIFY === '0' ? 'expanded' : 'compressed'
|
|
}),
|
|
autoprefixer,
|
|
]
|
|
}
|