29 lines
634 B
JavaScript
29 lines
634 B
JavaScript
|
const url = require("postcss-url");
|
||
|
const imports = require("postcss-import");
|
||
|
const nested = require("postcss-nested");
|
||
|
const postCSSPresetEnv = require("postcss-preset-env");
|
||
|
const browsers = require("browserslist");
|
||
|
const cssnano = require("cssnano");
|
||
|
const color = require("postcss-color-mod-function");
|
||
|
const mixins = require("postcss-mixins");
|
||
|
|
||
|
module.exports = () => ({
|
||
|
plugins: [
|
||
|
url,
|
||
|
imports,
|
||
|
mixins,
|
||
|
nested,
|
||
|
postCSSPresetEnv({
|
||
|
stage: 1,
|
||
|
preserve: true,
|
||
|
features: {
|
||
|
"custom-properties": true,
|
||
|
},
|
||
|
}),
|
||
|
cssnano({
|
||
|
preset: "default",
|
||
|
}),
|
||
|
color,
|
||
|
],
|
||
|
});
|