2021-10-02 02:22:30 +03:00
|
|
|
const autoprefixer = require('autoprefixer')
|
2023-05-12 20:40:35 +03:00
|
|
|
const sass = require('@csstools/postcss-sass')
|
2021-10-02 02:22:30 +03:00
|
|
|
const scss = require('postcss-scss')
|
|
|
|
const scssImport = require('postcss-import')
|
2023-05-31 21:09:16 +03:00
|
|
|
const { join } = require('path')
|
2021-10-02 02:22:30 +03:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
map: {
|
|
|
|
sourcesContent: false,
|
|
|
|
annotation: true
|
|
|
|
},
|
2021-10-28 20:47:09 +03:00
|
|
|
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'
|
|
|
|
}),
|
2024-04-09 21:55:11 +03:00
|
|
|
autoprefixer
|
2021-10-02 02:22:30 +03:00
|
|
|
]
|
|
|
|
}
|