Skip to content

--bundle removes CSS ??? #1149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RoyiNamir opened this issue Jan 4, 2018 · 1 comment
Closed

--bundle removes CSS ??? #1149

RoyiNamir opened this issue Jan 4, 2018 · 1 comment

Comments

@RoyiNamir
Copy link

RoyiNamir commented Jan 4, 2018

I'm sorry I don't know where is the problem so I'v also posted in here

OK -
I've created an empty new project using tns create aaa --ng - Which is using Angular 5 & 3.40.

I've also added "nativescript-dev-webpack". the webpack.config.js file is the default one ( I havn't touched it). : https://gist.github.com/anonymous/4318d1205292d8707637f0b93cbd840a

The problem is that if I run : tns run android --env.uglify --env.report --env.aot - I do get to see the CSS in action :

image

But If I add --bundle : tns run android --bundle --env.uglify --env.report --env.aot I get to see this :

image

Question:

Why doesn't it respect the theme CSS ? It's a plain new project.

image

The sample project : https://ufile.io/bpkl8

BTw : all components uses ./ and added moduleid:module.id Just to see if that helps - still no.
Also platform remove/add didn't help.

@RoyiNamir
Copy link
Author

RoyiNamir commented Jan 4, 2018

3 hours wasting. until I found this :

NativeScript/nativescript-dev-webpack#378

And this fix :

NativeScript/nativescript-dev-webpack#378 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant