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

[Bug]: CopyRspackPlugin is not wokring #6574

Closed
krutoo opened this issue May 18, 2024 · 1 comment
Closed

[Bug]: CopyRspackPlugin is not wokring #6574

krutoo opened this issue May 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@krutoo
Copy link

krutoo commented May 18, 2024

System Info

System:
OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz
Memory: 17.48 GB / 31.21 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
Yarn: 1.22.21 - ~/.nvm/versions/node/v20.11.0/bin/yarn
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
pnpm: 8.15.2 - ~/.nvm/versions/node/v20.11.0/bin/pnpm
bun: 1.1.0 - ~/.bun/bin/bun
Browsers:
Chrome: 125.0.6422.60
npmPackages:
@rspack/cli: ^0.6.5 => 0.6.5

Details

Trying to copy files by CopyRspackPlugin does not have effect - there is no copied files in dist folder

Reproduce link

https://github.com/krutoo/try-copy-rspack-plugin

Reproduce Steps

  1. clone repo
  2. npm i
  3. npx rspack
  4. see no copied files in dist folder
@krutoo krutoo added bug Something isn't working pending triage The issue/PR is currently untouched. labels May 18, 2024
@krutoo krutoo changed the title [Bug]: [Bug]: CopyRspackPlugin is not wokring May 18, 2024
@LingyuCoder
Copy link
Collaborator

Please wrap from inside patterns. This aligns with copy-webpack-plugin

new CopyWebpackPlugin({
+  patterns: [{
    from: "src/static/favicon/**/*",
+  }]
})

@LingyuCoder LingyuCoder removed the pending triage The issue/PR is currently untouched. label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants