Skip to content

Commit f23085c

Browse files
authoredApr 22, 2019
fix: prevent merging of :host(tag) and tag css rules (#349)
1 parent 188d231 commit f23085c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
 

‎packages/main/config/postcss.components/postcss.config.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ const postcssCSStoESM = require('../../lib/postcss-css-to-esm/index.js');
44
const cssnano = require('cssnano');
55

66
module.exports = {
7-
plugins: [
8-
postcssNesting(),
9-
postcssAddFallback({importFrom: "./dist/css/themes/sap_fiori_3/parameters-bundle.css"}),
7+
plugins: [
8+
postcssNesting(),
9+
postcssAddFallback({importFrom: "./dist/css/themes/sap_fiori_3/parameters-bundle.css"}),
1010
cssnano({preset: [
1111
'default', {
1212
mergeLonghand: false, // https://github.com/cssnano/cssnano/issues/675
13+
mergeRules: false, // https://github.com/cssnano/cssnano/issues/730
1314
},
1415
]}, ),
15-
postcssCSStoESM(),
16-
]
16+
postcssCSStoESM(),
17+
]
1718
};

0 commit comments

Comments
 (0)
Please sign in to comment.