We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6553df6 commit 4d348deCopy full SHA for 4d348de
build/postcss.config.mjs
@@ -1,16 +1,18 @@
1
-export default context => ({
2
- map: context.file.dirname.includes('examples') ?
3
- false :
4
- {
5
- inline: false,
6
- annotation: true,
7
- sourcesContent: true
8
- },
9
- plugins: {
10
- 'postcss-drop-empty-css-vars': {},
11
- autoprefixer: {
12
- cascade: false
13
14
- 'postcss-combine-duplicated-selectors': {}
+const mapConfig = {
+ inline: false,
+ annotation: true,
+ sourcesContent: true
+}
+
+export default () => {
+ return {
+ map: mapConfig,
+ plugins: {
+ autoprefixer: {
+ cascade: false
+ },
+ 'postcss-combine-duplicated-selectors': {},
15
+ 'postcss-drop-empty-css-vars': {},
16
+ }
17
}
-})
18
0 commit comments