rollup-plugin-copy
rollup-plugin-copy copied to clipboard
The files in src cannot be obtained under the windows system
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.
I'm not sure if my paths are misconfigured, hope someone can help me
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 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:(
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.