Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Webpack's publicPath isn't used #176

Closed
@Tragetaschen

Description

@Tragetaschen

I'm using the html-loader for my angular 2 templates and that replaces for example <img src> paths with their server path. When I'm running my app in the browser, the publicPath is correctly used as expected. When running on the server, there is no publicPath at all (__webpack_require__.p seems to be the empty string / null / undefined).
That means, my browser renders <img src="/dist/9a08c41631a395a808e4d9d7b7b68d63.jpg"/>, the server just renders <img src="9a08c41631a395a808e4d9d7b7b68d63.jpg"/>.

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