Skip to content

Commit 4eff21a

Browse files
committed
fix: purgecss safelist config
1 parent 91e53f0 commit 4eff21a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

postcss.config.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ module.exports = {
1818
) || []
1919
);
2020
},
21-
safelist: [
22-
/-(leave|enter|appear)(|-(to|from|active))$/,
23-
/^(?!(|.*?:)cursor-move).+-move$/,
24-
/^router-link(|-exact)-active$/,
25-
/data-v-.*/,
26-
],
21+
safelist: {
22+
standard: [
23+
/-(leave|enter|appear)(|-(to|from|active))$/,
24+
/^(?!(|.*?:)cursor-move).+-move$/,
25+
/^router-link(|-exact)-active$/,
26+
/data-v-.*/,
27+
/^(svg-inline--fa|fa-)/, // fontawesome
28+
],
29+
deep: [],
30+
},
2731
}),
2832
],
2933
};

0 commit comments

Comments
 (0)