lisonge / vite-plugin-monkey

A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat
MIT License
1.33k stars 70 forks source link

Dev #177

Open WhiteSevs opened 1 month ago

WhiteSevs commented 1 month ago

可以修复/实现以下issue https://github.com/lisonge/vite-plugin-monkey/issues/144 https://github.com/lisonge/vite-plugin-monkey/issues/153

martixy commented 1 month ago

@WhiteSevs Appreciate the work on #153

But are you sure it will work? https://github.com/lisonge/vite-plugin-monkey/pull/177/commits/6f9fe45269253c0de5958e74fac1ea1d4e7775b6#diff-0036fffb54472a55085d5e4d2279c42d2d141b7726439c8dbbed768baa2fc3a8R311

Does filePath start with a slash?

Cuz the file URLs on windows I use are all with 3 slashes - file:///C:/... and you only add 2.

WhiteSevs commented 1 month ago

@WhiteSevs Appreciate the work on #153

But are you sure it will work? 6f9fe45#diff-0036fffb54472a55085d5e4d2279c42d2d141b7726439c8dbbed768baa2fc3a8R311

Does filePath start with a slash?

Cuz the file URLs on windows I use are all with 3 slashes - file:///C:/... and you only add 2.

没问题的,file://可以正常使用,你可以试一下,我自己就设置成这样的 Clip_2024-07-26_23-03-56

andywang425 commented 1 month ago

3 slashes is a correct and standard way while most software are also compatible with 2 slashes. So it's just a minor problem.