Use chokidar to bundle css files

This commit is contained in:
fflorent
2024-04-06 12:18:23 +02:00
committed by jordigh
parent 2f4122905d
commit 9bacfc8287
4 changed files with 4 additions and 12 deletions

View File

@@ -16,6 +16,8 @@ if [ ! -e _build ]; then
fi
tsc --build -w --preserveWatchOutput $PROJECT &
css_files="app/client/**/*.css"
chokidar "${css_files}" -c "bash -O globstar -c 'cat ${css_files} > static/bundle.css'" &
webpack --config $WEBPACK_CONFIG --mode development --watch &
NODE_PATH=_build:_build/stubs:_build/ext nodemon ${NODE_INSPECT:+--inspect} --delay 1 -w _build/app/server -w _build/app/common _build/stubs/app/server/server.js &