use var instead of const to avoid webpack issue in mobile frontend build, closes #1300

This commit is contained in:
zadam 2020-10-10 23:45:38 +02:00
parent 4eb9ca7b46
commit c71ac0302a
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
PKG_DIR=dist/trilium-linux-x64-server
NODE_VERSION=12.18.3
NODE_VERSION=12.19.0
if [ "$1" != "DONTCOPY" ]
then

View File

@ -7,6 +7,10 @@ fi
npm run webpack
# problem with circular dependencies: https://github.com/webpack/webpack/issues/9173
# source issue: https://github.com/zadam/trilium/issues/1300
find ./src/public/app-dist -type f -exec sed -i 's/const /var /g' {} +
DIR=$1
rm -rf $DIR