rollup-plugin-copy icon indicating copy to clipboard operation
rollup-plugin-copy copied to clipboard

The files in src cannot be obtained under the windows system

Open mayinrain opened this issue 2 years ago • 3 comments

I want to copy the static resources under this path to the packaged folder, but it prompts that there is no project copy. It can be copied normally under Darwin. 企业微信截图_16784327993731 企业微信截图_16784329291500 企业微信截图_16784329842381 I'm not sure if my paths are misconfigured, hope someone can help me

mayinrain avatar Mar 10 '23 07:03 mayinrain

I encountered the same problem. Seems if using relative paths the copy is working. So I guess it has to do with absolute paths.

I also already applied a .replace("\\","/") because I though it would be because of the slashes in Windows vs Linux ... but this didn't help.

nyn3x avatar Jul 02 '23 21:07 nyn3x

I encountered the same problem. Seems if using relative paths the copy is working. So I guess it has to do with absolute paths.

I also already applied a .replace("\\","/") because I though it would be because of the slashes in Windows vs Linux ... but this didn't help.

I gave up using this plugin and added logic to the script to copy and move static resources into the package:(

mayinrain avatar Jul 04 '23 08:07 mayinrain

I encountered the same problem. Seems if using relative paths the copy is working. So I guess it has to do with absolute paths.

I also already applied a .replace("\\","/") because I though it would be because of the slashes in Windows vs Linux ... but this didn't help.

I had the same problem before. And replace(/\\/g, '\/') works for me indeed. I think it didn't work for you cuz the replace method only with RegEx g flag would replace all the match items, otherwise only the first one would be replaced.

csu-feizao avatar Oct 27 '23 06:10 csu-feizao