Open LogicFan opened 6 months ago
I actually hit this issue too today. I found a work-around within the unit tests: import the css file directly into your content script JS file. CSS will then be automatically copied into the assets folder.
For example, within an assumed content-script.js:
import "./content-script.css";
console.log("inside content script!");
I actually hit this issue too today. I found a work-around within the unit tests: import the css file directly into your content script JS file. CSS will then be automatically copied into the assets folder.
For example, within an assumed content-script.js:
import "./content-script.css"; console.log("inside content script!");
meanwhile, you can now remove the "css": ["src/content/overlay/style.css"],
it works well.
Build tool
Vite
Where do you see the problem?
Describe the bug
if we specify the
in the mainfest, the css part should be correctly handled by the vite plugin. However, it's compeletely ignored. and path is simply copied with the actual css file missing from the
dist
folder.Reproduction
add the "css" section the in the content_scripts and the issue can be reproduced.
Logs
No response
System Info
Severity
annoyance