Skip to content

Images in templates are not fingerprinted #3415

Closed
@texel

Description

@texel

OS?

Mac OS X

Versions.angular-cli: 1.0.0-beta.21

node: 6.9.1
os: darwin x64

Repro steps.

Due to the way that assets are built, references to images in html templates are not processed by webpack and therefore aren't fingerprinted. Furthermore, the src attributes don't get prefixed by publicPath (in the event that the PR #3285 is merged) and we don't have the flexibility to locate images with their components (#3292)

The log given by the failure.

n/a

Mention any other details that might be useful.

I have a branch that uses html-loader instead of raw-loader for html files, which fixes all these problems. I'd be willing to create a PR that makes this change, perhaps only if passed a config option, but I'm open to other ideas and would like to get the opinion of the angular-cli team as to whether this is something they're interested in supporting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIssue that requests a new featuretype: faq

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions