forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostcss.config.js
More file actions
37 lines (30 loc) · 910 Bytes
/
postcss.config.js
File metadata and controls
37 lines (30 loc) · 910 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
32
33
34
35
36
37
/* eslint-env node */
/* eslint-disable import/no-commonjs */
module.exports = {
plugins: [
// Import other CSS files
require("postcss-import")(),
// Rebase/inline URLs
require("postcss-url")(),
// import custom media queries and provide them globally available
require("@csstools/postcss-global-data")({
files: ["frontend/src/metabase/css/core/breakpoints.module.css"],
}),
// Modern CSS features & your custom-media definitions
require("postcss-preset-env")({
stage: 2,
features: {
"custom-media-queries": true,
"custom-properties": true,
"focus-visible-pseudo-class": false,
"has-pseudo-class": false,
},
}),
// Strip comments
require("postcss-discard-comments")(),
// Nesting support
require("postcss-nesting")(),
// Mantine preset
require("postcss-preset-mantine")(),
],
};