-
Notifications
You must be signed in to change notification settings - Fork 1
/
postcss.config.js
33 lines (33 loc) · 909 Bytes
/
postcss.config.js
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
33
const paths = require("./config/path");
const isEnvProduction = process.env.NODE_ENV === "production";
module.exports = {
sourceMap: isEnvProduction,
plugins: function() {
return [
require("postcss-import")({
resolve: (id, basedir, importOptions) => {
return `${paths.clientPath}/${id}`;
},
}),
require("postcss-apply"),
require("postcss-flexbugs-fixes"),
require("postcss-preset-env")({
autoprefixer: { grid: true },
importFrom: [paths.cssVar],
}),
require("postcss-normalize")(),
require("precss"),
require("postcss-plugin-px2rem")({
rootValue: 100,
unitPrecision: 5,
propWhiteList: [],
propBlackList: [],
selectorBlackList: [],
ignoreIdentifier: false,
replace: true,
mediaQuery: false,
minPixelValue: 0,
}),
];
},
};