-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostcss.config.js
38 lines (32 loc) · 1.05 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
// postcss.config.js
const postcssAnimations = require("postcss-animations")({
data: [
require("postcss-animation.css-data"),
require("postcss-magic.css-data"),
require("postcss-mimic.css-data"),
require("postcss-tuesday.css-data")
],
checkDuplications: true,
disableCheckCssVariables: true
})
const env = process.env.NODE_ENV;
const isProd = env === "production";
const purgecss = require('@fullhuman/postcss-purgecss')({
// Specify the paths to all of the template files in your project
content: ['./src/*.rs'],
keyframes: true,
// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
})
module.exports = {
plugins: [
...(isProd ? [purgecss] : []),
require('postcss-import'),
require('tailwindcss')('tailwind.config.js'),
require('autoprefixer'),
require('postcss-clean'),
require('postcss-nested'),
require('lost'),
postcssAnimations,
]
}