From 657ff16267de1f42bf8d50c35d3af4ee26f6677d Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 20 Apr 2020 23:14:50 +0200 Subject: [PATCH] fix build webpack --- bin/copy-trilium.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh index d83f9f47f..fe92ca912 100755 --- a/bin/copy-trilium.sh +++ b/bin/copy-trilium.sh @@ -5,6 +5,8 @@ if [[ $# -eq 0 ]] ; then exit 1 fi +npm run webpack + DIR=$1 rm -rf $DIR @@ -25,7 +27,7 @@ cp -r electron.js $DIR/ cp webpack-* $DIR/ # run in subshell (so we return to original dir) -(cd $DIR && npm install --only=prod && npm run webpack) +(cd $DIR && npm install --only=prod) find $DIR/libraries -name "*.map" -type f -delete