From aca37b87842a93d6b7572c939f06bc7899c89ce9 Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Thu, 1 Oct 2020 11:25:22 +0200 Subject: [PATCH] Fix build:js:watch not building at first launch in Docker --- dev/docker/entrypoint.node.sh | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/docker/entrypoint.node.sh b/dev/docker/entrypoint.node.sh index e59e1e8a0..a8f33fd3d 100755 --- a/dev/docker/entrypoint.node.sh +++ b/dev/docker/entrypoint.node.sh @@ -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 diff --git a/package.json b/package.json index c3ca2add6..d5e93a31e 100644 --- a/package.json +++ b/package.json @@ -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",