Skip to content

Commit fa134c1

Browse files
committed
Resolve merge conflict: Combine cross-platform copy instructions
2 parents 12d80e8 + 371aa7e commit fa134c1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ If automatic setup didn't work or you need custom configuration:
6666
cp node_modules/webcodecs-encoder/dist/worker.js public/webcodecs-worker.js
6767
```
6868

69+
```cmd
70+
# Windows equivalent
71+
copy node_modules\webcodecs-encoder\dist\worker.js public\webcodecs-worker.js
72+
```
73+
74+
```bash
75+
# Cross-platform Node script (requires fs-extra)
76+
node -e "require('fs-extra').copySync('node_modules/webcodecs-encoder/dist/worker.js', 'public/webcodecs-worker.js')"
77+
```
78+
6979
### Disable Automatic Worker Copy
7080

7181
Set `WEB_CODECS_ENCODER_SKIP_COPY=1` before installation if you want to skip the copy performed by the `postinstall` script.

0 commit comments

Comments
 (0)