Add more scripts for dev/prod build.

master
Icedream 2018-08-24 11:03:35 +02:00
parent 05ec4b67c6
commit 4f947e92cf
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 5 additions and 2 deletions

View File

@ -36,10 +36,13 @@
"query-string": "^6.1.0"
},
"scripts": {
"build": "webpack",
"build": "webpack --mode development",
"build:production": "webpack --mode production",
"start": "webpack-dev-server --mode development --content-base dist/ --host 0.0.0.0 --port 4545",
"video": "run-s video:mkdirp video:dash",
"video:production": "run-s video:mkdirp video:dash:production",
"video:mkdirp": "mkdirp dist/video",
"video:dash": "babel-node -- development/node/ffmpeg -loglevel warning -stats -i video/big.mp4 -c copy -use_timeline 1 -use_template 1 -single_file 1 -hls_playlist 1 -f dash -y dist/video/clock.mpd"
"video:dash": "babel-node -- development/node/ffmpeg -loglevel warning -stats -i video/big.mp4 -c copy -use_timeline 1 -use_template 1 -single_file 1 -f dash -y dist/video/clock.mpd",
"video:dash:production": "babel-node -- development/node/ffmpeg -loglevel warning -stats -i video/big.mp4 -c copy -use_timeline 1 -use_template 1 -f dash -y dist/video/clock.mpd"
}
}