-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostcss.config.mjs
More file actions
31 lines (30 loc) Β· 891 Bytes
/
postcss.config.mjs
File metadata and controls
31 lines (30 loc) Β· 891 Bytes
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
const config = {
plugins: [
"@tailwindcss/postcss",
// π CSS μ΅μ ν (PostCSS κΈ°λ°)
...(process.env.NODE_ENV === 'production' ? [
// CSS μμΆ λ° μ΅μ ν
['cssnano', {
preset: ['default', {
discardComments: { removeAll: true },
normalizeWhitespace: true,
minifySelectors: true,
minifyParams: true,
minifyFontValues: true,
minifyGradients: true,
minifyTimingFunctions: true,
minifyTransforms: true,
normalizeUrl: true,
mergeLonghand: true,
mergeRules: true,
discardDuplicates: true,
discardEmpty: true,
discardOverridden: true,
reduceIdents: true,
zindex: false, // z-index μ΅μ ν λΉνμ±ν (λ μ΄μ΄ μμ 보μ₯)
}]
}]
] : [])
],
};
export default config;