-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostcss.config.cjs
More file actions
25 lines (23 loc) · 903 Bytes
/
Copy pathpostcss.config.cjs
File metadata and controls
25 lines (23 loc) · 903 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
const postcssPresetEnv = require("postcss-preset-env");
const config = {
plugins: [
require("postcss-mixins"),
postcssPresetEnv({
stage: 2,
features: {
// mCSS ships native cascade layers; without this, preset-env's
// polyfill strips every @layer rule and rewrites priorities as
// specificity hacks. Do not remove.
"cascade-layers": false,
// Let native random() pass through untouched. The polyfill freezes
// random() into a single static value (seeded by source length, so
// it churns on any edit) AND leaves it inside the @supports
// (random()) gate, defeating the wireframe theme's live per-element
// tilt. Browsers without random() already fall back to the tier 1
// sibling-index() math. Do not enable.
"random-function": false,
},
}),
],
};
module.exports = config;