-
Notifications
You must be signed in to change notification settings - Fork 0
/
postcss.config.cjs
32 lines (30 loc) · 996 Bytes
/
postcss.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const autoprefixer = require("autoprefixer");
const postcssPresetEnv = require("postcss-preset-env");
const postcssImport = require("postcss-import");
const postcssImportGlob = require("postcss-import-ext-glob");
const cssnano = require("cssnano");
const tailwind = require("tailwindcss");
/** @type {import('postcss-load-config').Config} */
module.exports = {
map: process.env.NODE_ENV === "production" ? false : { inline: true },
from: "src/assets/css/global.css",
to: "dist/assets/css/global.css",
plugins: [
postcssImportGlob(),
postcssImport(),
postcssPresetEnv({
stage: 1,
features: {
"nesting-rules": true,
"custom-properties": false,
"custom-media-queries": true,
"prefers-color-scheme-query": false,
"focus-visible-pseudo-class": false,
"logical-properties-and-values": false,
},
}),
tailwind(),
autoprefixer(),
...(process.env.NODE_ENV === "production" ? [cssnano()] : []),
],
};