Skip to content

Commit

Permalink
fix: prevent merging of :host(tag) and tag css rules (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
MapTo0 authored Apr 22, 2019
1 parent 188d231 commit f23085c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/main/config/postcss.components/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ const postcssCSStoESM = require('../../lib/postcss-css-to-esm/index.js');
const cssnano = require('cssnano');

module.exports = {
plugins: [
postcssNesting(),
postcssAddFallback({importFrom: "./dist/css/themes/sap_fiori_3/parameters-bundle.css"}),
plugins: [
postcssNesting(),
postcssAddFallback({importFrom: "./dist/css/themes/sap_fiori_3/parameters-bundle.css"}),
cssnano({preset: [
'default', {
mergeLonghand: false, // https://github.com/cssnano/cssnano/issues/675
mergeRules: false, // https://github.com/cssnano/cssnano/issues/730
},
]}, ),
postcssCSStoESM(),
]
postcssCSStoESM(),
]
};

0 comments on commit f23085c

Please sign in to comment.