To change and develop HLS.js locally, the follow steps are required
- run
npm link @wistia/hls.js
- run
npm run build:watch
<- this will start up the HLS.js server and watch for changes
- stop your local server if running
- run
npm link @wistia/hls.js
- start your player-modern server as normal
- stop your player-modern server and the hls.js server
- run
npm unlink @wistia/hls.js
from player-modern - run
yarn
in player-modern before restarting- if you get compilation errors you may need to run
yarn install --force
- you may need to delete the
package-lock.json
if it is present in player-modern
- if you get compilation errors you may need to run