Closed Yzen90 closed 7 months ago
The css file gets inserted in the index.html with a wrong path on Windows with vite build:
index.html
vite build
<link rel="stylesheet" href="\\assets\\stylex.b14ace87.css">
Changing this line in the plugin:
const publicPath = path.join(publicBasePath, fileName);
To
const publicPath = path.posix.join(publicBasePath, fileName.replace('\\', '/'));
Inserts a correct path in the index.html:
<link rel="stylesheet" href="/assets/stylex.b14ace87.css">
Thanks for the report; this should be fixed in v0.3.1!
Let me know if it works for you :smile:
The css file gets inserted in the
index.html
with a wrong path on Windows withvite build
:Changing this line in the plugin:
To
Inserts a correct path in the
index.html
: