chore: New js transpiler for dev and for production

The old system weren't minifying javascriptt to assets dir.
Now there is a command line for production (build) and dev (build:dev).
This commit is contained in:
kbe
2025-08-18 00:13:25 +02:00
parent ad97a36650
commit 2927a8344f
5 changed files with 212 additions and 57 deletions

View File

@@ -2,7 +2,7 @@ module.exports = {
apps: [
{
name: "watch-js", // Name of the process
script: "bun", // Run npm command
script: "yarn", // Run npm command
args: "run build --watch", // Run build, build:css, and watch:files in sequence
watch: false, // Watch for file changes (you can modify this as needed)
autorestart: true, // Automatically restart on crash
@@ -13,7 +13,7 @@ module.exports = {
},
{
name: "watch-css", // Name of the process
script: "bun", // Run npm command
script: "yarn", // Run npm command
args: "run build:css --watch", // Run build, build:css, and watch:files in sequence
watch: false, // Watch for file changes (you can modify this as needed)
autorestart: true, // Automatically restart on crash