Stencil version:
@stencil/core@0.14.0-6 (also occurs in 0.13.2)
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Given the following scss:
.stable-border {
// border: 1px solid cssvar(stable-light) !important;
border: 1px solid cssvar(stable-light);
}
If the line with !important is used, the color portion is elided from the generated CSS when doing npm run build.
If the line without !important is used, the color portion is included in the generated CSS when doing npm run build.
If using npm run build -- --dev, the color portion is always included whether or not !important is used.
Expected behavior:
The color portion would always be included in the generated CSS.
Steps to reproduce:
I have a private repo that can be cloned. It is based on code from a community member. If you need the URL, please DM me on Slack.
- clone the private repo
- npm i
- search for "stable-border" in the code, it should only be in one place
- alternate the line that is used in the build
- look at the output
With npm run build -- --dev the color portion will always be there
With npm run build the color portion will not be included when !important is used
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Given the following scss:
If the line with
!importantis used, the color portion is elided from the generated CSS when doingnpm run build.If the line without
!importantis used, the color portion is included in the generated CSS when doingnpm run build.If using
npm run build -- --dev, the color portion is always included whether or not!importantis used.Expected behavior:
The color portion would always be included in the generated CSS.
Steps to reproduce:
I have a private repo that can be cloned. It is based on code from a community member. If you need the URL, please DM me on Slack.
With
npm run build -- --devthe color portion will always be thereWith
npm run buildthe color portion will not be included when!importantis used