jantimon/html-webpack-plugin

Injected script path was encoded in window os

silent-tan opened this issue · 6 comments

Current behaviour 💣

the script or css link path was encoded in windows
image

filename define:

image

image

Environment 🖥

Node.js v14.16.0
npm 6.14.11
html-webpack-plugin 4.5.1

related issue #1445

Isn't that caused because of path.join?

but the output is correct which in mac os or centos

Facing the same issue works in mac but not on windows.

A asset path is always a url and must not use \.
You can use path.posix.join instead of path.join to get a web compatible path.

stale commented

This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days.