From 7bfd1b1edb7ea4ea6516b6a74c4e9af938d0bdc6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Dec 2017 11:38:02 +0100 Subject: Upgrade scripts and embed webpack config --- scripts/build/client.sh | 5 +++-- scripts/watch/client.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') 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 @@ cd client || exit -1 -rm -rf ./compiled ./dist +rm -rf ./dist -npm run webpack -- --config config/webpack.prod.js --progress --profile --bail +ng build -- --prod +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 @@ cd client || exit -1 -npm run webpack-dev-server -- --config config/webpack.dev.js --progress --profile --colors --watch --content-base src/ --hotOnly --open +ng server --host localhost --port 3000 -- cgit v1.2.3