-
Notifications
You must be signed in to change notification settings - Fork 0
/
postcss.config.js
42 lines (39 loc) · 1.09 KB
/
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
const cssnano = require('cssnano')
// const doiuse = require('doiuse')
const postcssDiscardEmpty = require('postcss-discard-empty')
// const postcssAutoreest = require('postcss-autoreset')
const postcssPresetEnv = require('postcss-preset-env')
const postcssSorting = require('postcss-sorting')
const stylelint = require('stylelint')
const purgecss = require('@fullhuman/postcss-purgecss')
const combineSelectors = require('postcss-combine-duplicated-selectors')
// is this "fs" needed? ... optimize-css-mq has it listed
// const fs = require("fs");
module.exports = {
plugins: [
// doiuse(""),
postcssPresetEnv({stage: 2}),
postcssSorting({}),
postcssDiscardEmpty({}),
stylelint({
/* your options */
"fix": true
}),
combineSelectors({
removeDuplicatedProperties: true
}),
// purgecss({
// content: [
// './**/*.php',
// './**/*.tpl',
// "./**/*.js"
// ],
// safelist: ['feed-title','feed-item-title', 'feed-item-desc' ]
// }),
cssnano({
preset: ['default', {
colormin: false,
}],
})
]
}