-
Notifications
You must be signed in to change notification settings - Fork 21
/
postcss.config.js
45 lines (42 loc) · 937 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
34
35
36
37
38
39
40
41
42
43
44
45
const postcssPresetEnv = require('postcss-preset-env')
const postcssImport = require('postcss-import')
const importUrl = require('postcss-import-url')
const cssnano = require('cssnano')
const dev = {
plugins: [
importUrl(),
postcssImport({
path: 'app/css',
}),
postcssPresetEnv({
stage: 0,
features: {
'logical-properties-and-values': false,
'prefers-color-scheme-query': false,
'gap-properties': false,
}
}),
]
}
const prod = {
plugins: [
importUrl(),
postcssImport({
path: 'app/css',
}),
postcssPresetEnv({
stage: 0,
features: {
'logical-properties-and-values': false,
'prefers-color-scheme-query': false,
'gap-properties': false,
}
}),
cssnano({
preset: 'default'
}),
]
}
module.exports = process.env.NODE_ENV === 'production'
? prod
: dev