electron-userland / electron-userland/electron-webpack

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

Open
#363 12 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

* **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:
`Logo`

Expected HTML output:
`Logo`

Actual HTML output:
`Logo`

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the build using electron-webpack 2.8.2 with the shown img source and compare the generated HTML with the expected and actual output. Start by checking the asset-handling path around the reported html-loader upgrade from 1.0.0-alpha.0 to 1.1.0; done means the ~@/assets/Logo.svg reference produces the expected data URL rather than [object Module].

Written by the indexing model from the issue text.

Assessment

Tech stack
webpack
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.