Skip to content

Upgrade to v2.8.2 breaks asset loading via ~@/assets/ #363

Open
@jmeinke

Description

@jmeinke
  • Version: 2.8.2
  • Target: All

Upgrading electron-webpack from v2.7.4 to v2.8.2 leads to ~@/assets/ not being converted to the proper paths anymore. The problem might be related to the upgrade of html-loader from v1.0.0-alpha.0 to 1.1.0 in electron-webpack?

Input:
<img src="~@/assets/Logo.svg" alt="Logo" style="width: 320px;" />

Expected HTML output:
<img data-v-e9ddaef6="" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz...." alt="Logo" style="width: 320px;">

Actual HTML output:
<img data-v-e9ddaef6="" src="[object Module]" alt="Logo" style="width: 320px;">

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