Add more scripts for dev/prod build.
parent
05ec4b67c6
commit
4f947e92cf
|
@ -36,10 +36,13 @@
|
||||||
"query-string": "^6.1.0"
|
"query-string": "^6.1.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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",
|
"start": "webpack-dev-server --mode development --content-base dist/ --host 0.0.0.0 --port 4545",
|
||||||
"video": "run-s video:mkdirp video:dash",
|
"video": "run-s video:mkdirp video:dash",
|
||||||
|
"video:production": "run-s video:mkdirp video:dash:production",
|
||||||
"video:mkdirp": "mkdirp dist/video",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue