From a665490b14edebfada06c12d8c3aac2b7328c967 Mon Sep 17 00:00:00 2001 From: Ian Wijma Date: Tue, 28 Nov 2023 00:18:56 +1100 Subject: [PATCH] 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. --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 4b79176..9c8617e 100644 --- a/package.json +++ b/package.json @@ -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": {