Add build scripts to package.json

Added "build" and "build:tailwind" scripts to package.json file. The "build" script was added to bundle the app with Tauri, which enhances the application's security and performance. The "build:tailwind" script was also added to compile tailwind CSS styles into an index.css file. This ensures styles are correctly applied when app is built for production.
This commit is contained in:
Ian Wijma 2023-11-28 00:18:56 +11:00
parent f63752bb5b
commit a665490b14
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@
"dev": "concurrently --kill-others \"npm run dev:tauri\" \"npm run dev:tailwind\"",
"dev:tauri": "RUST_BACKTRACE=1 tauri dev",
"dev:tailwind": "tailwindcss -i ./assets/input.css -o ./src/index.css --watch",
"build": "npm run build:tailwind && tauri build",
"build:tailwind": "tailwindcss -i ./assets/input.css -o ./src/index.css",
"tauri": "tauri"
},
"devDependencies": {