nativescript-dev-webpack
nativescript-dev-webpack copied to clipboard
Uglify.js: CSS styles for element selectors are not applied when element is registered (e.g. CardView)
Styles of the following type (element selector) are not applied when building with uglify
CardView {
background-color: slateblue;
}
CardView > GridLayout {
background-color: green;
}
The cardview element (from nativescript-cardview) is registered via Angular's registerElement
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 is not provided. Test project demonstrating the above can be found [here](Test project demonstrating the above can be found here