Skip to content

Image from local folder not included in the final build #3132

@hitpopdimestop

Description

@hitpopdimestop

OS?

MacOS Sierra 10.12.1

Versions.

angular-cli: 1.0.0-beta.18
node: 7.0.0
os: darwin x64

Repro steps.

The app was completely built with CLI. I included an <img src="LOCAL_PATH"> in one of my templates and this file was lost in my final build in dist folder. The CLI just hasn't put it there. This is what I got instead of an image:
screen shot 2016-11-14 at 12 02 46

I inspected the element and saw that path was the same relative LOCAL_PATH as I put it in development mode, but of course, the file wasn't there. I fixed the problem by putting an image on external hosting, but I guess it should be working just fine without that.

No errors were thrown while building and deploying the app.

Dmytro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions