-
Notifications
You must be signed in to change notification settings - Fork 12k
Production build css url does not use data URI scheme #13355
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
Comments
Hi, thanks for reporting this, however this is the indented behaviour in version 7. This is due CSS resources under 10kb are no longer inlined. There are several reasons behind this decision.
The resources now need to be available on the server. In case you have a baseHref of See #12027 |
Thanks @alan-agius4. I suppose there's no flag to force data URI, as far as I've seen in the documentation. Unfortunately, I can't place it under root, since I'm deploying my app with django, and all my assets are under |
Hi, nope there is no such feature, to enable certain resources to be inlined because this functionality in a lot of cases is a footgun. That said, with Angular CLI |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
After upgrading to angular 7 (from angular 6) CSS urls are no longer having data URI in production build. All images on my site are broken when I deploy the app.
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Linux: Ubuntu 16.04
Node: v10.14.2
npm: 6.4.1
ng --version:
Repro steps
I define my css image urls as e.g.
And after
ng build --prod
The url on my live server is rendered as:
However, after the upgrade to angular 7, the url becomes:
The log given by the failure
No log.
Desired functionality
I want to be able to use data URI instead of relative/absolute url, when production build is compiled.
Mention any other details that might be useful
Two or more projects are using identical roots. Unable to determine project using current working directory. Using default workspace project instead.
warningThe text was updated successfully, but these errors were encountered: