Skip to content
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

when using --single-bundle --extractCss=true does not work #91

Open
EugenMayer opened this issue Apr 15, 2019 · 5 comments
Open

when using --single-bundle --extractCss=true does not work #91

EugenMayer opened this issue Apr 15, 2019 · 5 comments

Comments

@EugenMayer
Copy link

using --single-bundle=true --extractCss=true does no longer work and the CSS is not included ( the ones defined in styles: [] in angular.json)

@pandamorphism
Copy link

pandamorphism commented Apr 23, 2019

though, its not quite logical but it should work:
--single-bundle true --bundleStyles false

delete config.entry.styles;

@maciejkoch
Copy link

Can someone confirm that it does work?

@ocassio
Copy link

ocassio commented Dec 11, 2019

Facing the same issue after upgrading to Angular 8 and ngx-build-plus 9.0.2.
It did work with the Angular 6 and ngx-build-plus 7.8.3 before, though.

We are using the following options:

{
  "singleBundle": true,
  "extractCss": true,
  "bundleStyles": false,
}

@ocassio
Copy link

ocassio commented Dec 11, 2019

As @maciejkoch mentioned in #145, you can set keepStyles to false alongside "bundleStyles": false as a workaround for this issue. Maybe this one should be closed as duplicate?

@hisham
Copy link

hisham commented Feb 25, 2020

See #145 (comment)

With Angular CLI 9.0.3, I am getting TypeError: filename.endsWith is not a function error even with keepStyles and bundleStyles set to false.

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

5 participants