Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The files in src cannot be obtained under the windows system #69

Open
mayinrain opened this issue Mar 10, 2023 · 3 comments
Open

The files in src cannot be obtained under the windows system #69

mayinrain opened this issue Mar 10, 2023 · 3 comments

Comments

@mayinrain
Copy link

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

@nyn3x
Copy link

nyn3x commented Jul 2, 2023

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.

@mayinrain
Copy link
Author

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:(

@csu-feizao
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants