]> BookStack Code Mirror - bookstack/commitdiff
Fix build:js:watch not building at first launch in Docker 2296/head
authorTimo Schwarzer <redacted>
Thu, 1 Oct 2020 09:25:22 +0000 (11:25 +0200)
committerTimo Schwarzer <redacted>
Thu, 1 Oct 2020 09:25:22 +0000 (11:25 +0200)
dev/docker/entrypoint.node.sh
package.json

index e59e1e8a027b55f73a7466812754692a468d9185..a8f33fd3d93c2be93d34f5c3bb4b01f7578815de 100755 (executable)
@@ -5,4 +5,4 @@ set -e
 npm install
 npm rebuild node-sass
 
-exec npm run watch
\ No newline at end of file
+SHELL=/bin/sh exec npm run watch
index c3ca2add627a2bbaf145d42cf6857c63eef04243..d5e93a31e3dc4aaca1e4835196656da0c1f28d4f 100644 (file)
@@ -5,7 +5,7 @@
     "build:css:watch": "sass ./resources/sass:./public/dist --watch",
     "build:css:production": "sass ./resources/sass:./public/dist -s compressed",
     "build:js:dev": "esbuild --bundle ./resources/js/index.js --outfile=public/dist/app.js --sourcemap --target=es2019 --main-fields=module,main",
-    "build:js:watch": "chokidar \"./resources/**/*.js\" -c \"npm run build:js:dev\"",
+    "build:js:watch": "chokidar --initial \"./resources/**/*.js\" -c \"npm run build:js:dev\"",
     "build:js:production": "NODE_ENV=production esbuild --bundle ./resources/js/index.js --outfile=public/dist/app.js --sourcemap --target=es2019 --main-fields=module,main --minify",
     "build": "npm-run-all --parallel build:*:dev",
     "production": "npm-run-all --parallel build:*:production",