diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-12 11:38:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-12 11:42:48 +0100 |
commit | 7bfd1b1edb7ea4ea6516b6a74c4e9af938d0bdc6 (patch) | |
tree | 722781d5d89fe438e7491da7e9d09dedd8c82a74 /scripts | |
parent | 63c4db6d71b98523753c51747e308682d9a2e8a0 (diff) | |
download | PeerTube-7bfd1b1edb7ea4ea6516b6a74c4e9af938d0bdc6.tar.gz PeerTube-7bfd1b1edb7ea4ea6516b6a74c4e9af938d0bdc6.tar.zst PeerTube-7bfd1b1edb7ea4ea6516b6a74c4e9af938d0bdc6.zip |
Upgrade scripts and embed webpack config
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/client.sh | 5 | ||||
-rwxr-xr-x | scripts/watch/client.sh | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 3a1532daf..f34f5130f 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | cd client || exit -1 | 3 | cd client || exit -1 |
4 | 4 | ||
5 | rm -rf ./compiled ./dist | 5 | rm -rf ./dist |
6 | 6 | ||
7 | npm run webpack -- --config config/webpack.prod.js --progress --profile --bail | 7 | ng build -- --prod |
8 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js | ||
diff --git a/scripts/watch/client.sh b/scripts/watch/client.sh index d5eb25818..b754ade76 100755 --- a/scripts/watch/client.sh +++ b/scripts/watch/client.sh | |||
@@ -2,4 +2,4 @@ | |||
2 | 2 | ||
3 | cd client || exit -1 | 3 | cd client || exit -1 |
4 | 4 | ||
5 | npm run webpack-dev-server -- --config config/webpack.dev.js --progress --profile --colors --watch --content-base src/ --hotOnly --open | 5 | ng server --host localhost --port 3000 |