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

Component images are not included in build #4831

Closed
arliber opened this issue Feb 19, 2017 · 4 comments
Closed

Component images are not included in build #4831

arliber opened this issue Feb 19, 2017 · 4 comments

Comments

@arliber
Copy link

arliber commented Feb 19, 2017

OS?

Mac OSX El Capitan

Versions.

1.0.0-beta.26

Repro steps.

Added images in src/app/componenet/images and added links to them from HTML

The images are shown properly in dev mode but once built, they are missing.

Looks like none of the images referenced in css/html are passing through webpack image loader and thus are not base64'ed nor copied over..

I would love to keep the images with the component and not use assets/ for that.

What am I missing?
Thanks in advance

@clydin
Copy link
Member

clydin commented Feb 19, 2017

HTML is not processed. However, component stylesheets are processed but there is currently an issue when used in combination with AOT (which is the default for production builds).

See this issue for details: #4806

@janwo
Copy link

janwo commented Feb 20, 2017

The issue #4806 was closed and does not solve image recognition in html files.

@filipesilva
Copy link
Contributor

Closing as answered by @clydin. The CLI doesn't process images in HTML.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants