Skip to content

Build your personal knowledge base with Trilium Notes

transform setup.js to the webpacked version in the build

zadam64c9734f05ce
diff --git a/Dockerfile b/Dockerfile
index 204ea0b317..99534a78aa 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:12.16.2-alpine
+FROM node:12.16.3-alpine
# Create app directory
WORKDIR /usr/src/app
diff --git a/bin/build-server.sh b/bin/build-server.sh
index a6de256bbc..2b5d512f21 100755
--- a/bin/build-server.sh
+++ b/bin/build-server.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
PKG_DIR=dist/trilium-linux-x64-server
-NODE_VERSION=12.16.2
+NODE_VERSION=12.16.3
if [ "$1" != "DONTCOPY" ]
then
diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh
index fe92ca912f..dd7f128eb1 100755
--- a/bin/copy-trilium.sh
+++ b/bin/copy-trilium.sh
@@ -34,4 +34,5 @@ find $DIR/libraries -name "*.map" -type f -delete
rm -r $DIR/src/public/app
sed -i -e 's/app\/desktop.js/app-dist\/desktop.js/g' $DIR/src/views/desktop.ejs
-sed -i -e 's/app\/mobile.js/app-dist\/mobile.js/g' $DIR/src/views/mobile.ejs
\ No newline at end of file
+sed -i -e 's/app\/mobile.js/app-dist\/mobile.js/g' $DIR/src/views/mobile.ejs
+sed -i -e 's/app\/setup.js/app-dist\/setup.js/g' $DIR/src/views/setup.ejs
\ No newline at end of file
diff --git a/src/views/setup.ejs b/src/views/setup.ejs
index 2225d1c7f7..ddbd94cfd3 100644
--- a/src/views/setup.ejs
+++ b/src/views/setup.ejs
@@ -210,7 +210,7 @@
<script src="libraries/knockout.min.js"></script>
-<script src="app-dist/setup.js" crossorigin type="module"></script>
+<script src="app/setup.js" crossorigin type="module"></script>
<link href="stylesheets/themes.css" rel="stylesheet">
</body>
</html>