Skip to content

Commit 4d348de

Browse files
committed
chore: clean-up
1 parent 6553df6 commit 4d348de

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

build/postcss.config.mjs

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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': {}
1+
const mapConfig = {
2+
inline: false,
3+
annotation: true,
4+
sourcesContent: true
5+
}
6+
7+
export default () => {
8+
return {
9+
map: mapConfig,
10+
plugins: {
11+
autoprefixer: {
12+
cascade: false
13+
},
14+
'postcss-combine-duplicated-selectors': {},
15+
'postcss-drop-empty-css-vars': {},
16+
}
1517
}
16-
})
18+
}

0 commit comments

Comments
 (0)