-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
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 sMetadata
Metadata
Assignees
Labels
No labels