forked from stipsan/react-spring-bottom-sheet
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpostcss.config.js
More file actions
26 lines (25 loc) · 727 Bytes
/
Copy pathpostcss.config.js
File metadata and controls
26 lines (25 loc) · 727 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
const path = require('path')
const svgo = require('postcss-svgo')
const importFrom = path.resolve(__dirname, './defaults.json')
module.exports = {
plugins: {
tailwindcss: {},
'postcss-custom-properties-fallback': { importFrom },
// @TODO add importFrom to preset-env when CSS snapshot testing is in place
'postcss-preset-env': { importFrom, stage: 0 },
'postcss-import-svg': {
paths: [path.resolve(__dirname, 'docs')],
svgo: svgo({
plugins: [
{
removeUnknownsAndDefaults: {
// On by default, disabled as it breaks the frame.svg
unknownAttrs: false,
},
},
],
}),
},
autoprefixer: {},
},
}