Skip to content

unable to replace assetspath in js, but success in html, using webpack4 #43

@peade

Description

@peade

I use string-replace-loader to replace assetspath both in html and js.
It works in html, but fails in js.
this is my code:
{ loader: 'string-replace-loader', options: { search: '"\/images\/', replace: '"' + config.publicPath + 'images/', flags: 'ig' } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions