-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
postcss.config.cjs
48 lines (37 loc) · 1.27 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const autoprefixer = require('autoprefixer');
const postcssNesting = require('postcss-nesting');
const postcssNormalize = require('postcss-normalize')
const postcssPresetEnv = require('postcss-preset-env');
const cssnano = require('cssnano');
const postcssImport = require("postcss-import");
// const colorFunction = require("postcss-color-function")
const flexbugs = require('postcss-flexbugs-fixes');
const easingGadients = require('postcss-easing-gradients');
// const colorguard = require('colorguard');
const config = {
plugins: [
postcssImport,
postcssNesting,
// Apply modern CSS features with fallbacks
postcssPresetEnv,
// Normalize CSS
postcssNormalize,
// colorFunction,
easingGadients,
// Flexbox bug fixes
flexbugs,
// Add vendor prefixes
autoprefixer,
// Check for color clashes. To use colorguard: run "npx colorguard styles.css". This will output a report showing any color clashes and suggestions for alternative colors.
// usage as postcss plugin has inferior reporting. That's why we disable it by default:
// colorguard,
// minimize css
// @CSS BUGs: in case of unexpected CSS behaviour disable this.
// cssnano({
// preset: ['default', {
// discardComments: { removeAll: true },
// }]
// }),
]
};
module.exports = config;