This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork40
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Uglify.js: CSS styles for element selectors are not applied when element is registered (e.g. CardView) #913
Open
Labels
Description
Styles of the following type (element selector) are not applied when building withuglify
CardView {background-color: slateblue;}CardView>GridLayout {background-color: green;}
The cardview element (fromnativescript-cardview
)is registered via Angular'sregisterElement
Then we are building with the following command (Webpack enabled by default)
tns run android --env.uglify
As a result, the above CSS won't be applied. Works as expected when the uglify flag isnot provided. Test project demonstrating the above can be found [here](Test project demonstrating the above can be foundhere