Closed
Description
Please provide us with the following information:
OS?
Windows 10
Versions.
1.0.0-beta.32.3
Repro steps.
- Create new app with
ng new
.- Add an image anywhere outside the
app
directory, e.g. in theassets
directory.- Reference this image from the
app.component.css
, using a relative path.
Example:background-image: url(../assets/some_image.png)
- Do the following:
ng build --prod
.- Verify that the image is not copied along with the CSS in the build output, meaning the image reference is now broken.
The log given by the failure.
N/A
Mention any other details that might be useful.
The image is correctly copied if doing
ng build
without the--prod
switch.
Thanks! We'll be in touch soon.