We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
so I've this config:
rollupPlugins: { before: [ copy({ targets: [ { src: '../../node_modules/webtorrent/dist/sw.min.js', dest: './www/' }, { src: '../../node_modules/webtorrent/dist/sw.min.js', dest: './dist/' }, ], verbose: true, copyOnce: true, }) ] }
on the first build it works (if there is no sw.min.js file in destination), but on further builds- it fails with:
[54:24.0] @stencil/core [54:24.5] v4.23.0 🐣 [54:26.5] build, core-video-player, prod mode, started ... [54:26.5] transpile started ... [54:29.6] transpile finished in 3.08 s [54:29.6] generate custom elements + source maps started ... [54:29.6] generate lazy + source maps started ... copied: copied: [54:30.9] generate lazy + source maps finished in 1.29 s ../../node_modules/webtorrent/dist/sw.min.js → www/sw.min.js ../../node_modules/webtorrent/dist/sw.min.js → dist/sw.min.js [54:31.0] generate custom elements + source maps finished in 1.43 s [54:31.0] copy started ... [54:31.0] copy finished (2 files) in 32 ms [ ERROR ] Rollup: Plugin Error ENOENT: no such file or directory, unlink 'www/sw.min.js' (plugin: copy, buildEnd) [54:31.0] build failed in 4.59 s
The text was updated successfully, but these errors were encountered:
No branches or pull requests
so I've this config:
on the first build it works (if there is no sw.min.js file in destination), but on further builds- it fails with:
The text was updated successfully, but these errors were encountered: