mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
use var instead of const to avoid webpack issue in mobile frontend build, closes #1300
This commit is contained in:
parent
4eb9ca7b46
commit
c71ac0302a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user