Angular component scss is not applied with --uglify
andrzejbl opened this issue · 0 comments
Hi everyone!
Thanks for your great work with NativeScript!
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
Component nativescript has 5.2.3 version and is up to date.
Component tns-core-modules has 5.2.2 version and is up to date.
Component tns-android has 5.2.1 version and is up to date.
tns plugin
Dependencies:
┌───────────────────────────────────┬─────────┐
│ Plugin │ Version │
│ @angular/animations │ ~7.2.0 │
│ @angular/cdk │ ~7.2.1 │
│ @angular/common │ ~7.2.0 │
│ @angular/compiler │ ~7.2.0 │
│ @angular/core │ ~7.2.0 │
│ @angular/forms │ ~7.2.0 │
│ @angular/http │ ~7.2.0 │
│ @angular/platform-browser │ ~7.2.0 │
│ @angular/platform-browser-dynamic │ ~7.2.0 │
│ @angular/router │ ~7.2.0 │
│ @ngrx/router-store │ ^7.0.0 │
│ @ngrx/store │ ^7.0.0 │
│ @ngrx/store-devtools │ ^7.0.0 │
│ @types/facebook-js-sdk │ ^3.2.0 │
│ apollo-angular │ ^1.5.0 │
│ apollo-angular-link-http │ ^1.4.0 │
│ apollo-cache │ ^1.1.25 │
│ apollo-cache-inmemory │ 1.3.11 │
│ apollo-client │ 2.4.7 │
│ apollo-link │ ^1.2.6 │
│ apollo-link-serialize │ ^3.1.1 │
│ apollo-link-ws │ ^1.0.12 │
│ apollo-utilities │ ^1.1.2 │
│ core-js │ ^2.5.4 │
│ graphql │ ^14.0.2 │
│ hammerjs │ ^2.0.8 │
│ jwt-decode │ ^2.2.0 │
│ libphonenumber-js │ ^1.7.9 │
│ moment │ ^2.24.0 │
│ moment-timezone │ ^0.5.23 │
│ nativescript-angular │ ^7.2.2 │
│ nativescript-appversion │ ^1.4.1 │
│ nativescript-facebook │ ^2.4.0 │
│ nativescript-fresco │ ^5.2.0 │
│ nativescript-image-zoom │ ^3.0.3 │
│ nativescript-localstorage │ ^2.0.0 │
│ nativescript-plugin-firebase │ ^8.0.0 │
│ nativescript-social-share │ ^1.5.1 │
│ nativescript-theme-core │ ~1.0.4 │
│ nativescript-ui-listview │ ^5.2.0 │
│ nativescript-ui-sidedrawer │ ^5.1.0 │
│ nativescript-urlhandler │ ^1.2.3 │
│ ngrx-store-localstorage │ ^7.0.0 │
│ reflect-metadata │ ~0.1.12 │
│ rxjs │ ^6.3.3 │
│ rxjs-compat │ ^6.4.0 │
│ tns-core-modules │ ^5.2.2 │
│ zone.js │ ^0.8.4 │
└───────────────────────────────────┴─────────┘
Dev Dependencies:
┌──────────────────────────────────┬─────────┐
│ Plugin │ Version │
│ @angular-devkit/build-angular │ ~0.11.4 │
│ @angular/cli │ ^7.2.0 │
│ @angular/compiler-cli │ ~7.2.0 │
│ @nativescript/schematics │ ~0.4.0 │
│ @types/facebook-js-sdk │ ^3.2.0 │
│ @types/jasmine │ 2.8.6 │
│ @types/jasminewd2 │ ~2.0.3 │
│ @types/moment-timezone │ ^0.5.10 │
│ @types/node │ ~8.9.4 │
│ codelyzer │ ~4.2.1 │
│ jasmine-core │ ~2.99.1 │
│ jasmine-spec-reporter │ ~4.2.1 │
│ karma │ ~1.7.1 │
│ karma-chrome-launcher │ ~2.2.0 │
│ karma-coverage-istanbul-reporter │ ~2.0.0 │
│ karma-jasmine │ ~1.1.1 │
│ karma-jasmine-html-reporter │ ^0.2.2 │
│ nativescript-dev-sass │ ^1.7.0 │
│ nativescript-dev-typescript │ ^0.9.0 │
│ nativescript-dev-webpack │ ^0.20.2 │
│ protractor │ ~5.3.0 │
│ tns-platform-declarations │ ^5.2.2 │
│ ts-node │ ~5.0.1 │
│ tslint │ ~5.9.1 │
│ typescript │ ~3.1.1
Describe the bug
Command tns debug android --bundle --env.uglify
produces no error and component styles are not applied.
While command tns debug android --bundle
produces no error and component styles are applied
To Reproduce
add --uglify to tns debug
Expected behavior
styles from component scss file should be applied
Sample project
I can't share this one, but will work on sample if needed