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:
parent
f63752bb5b
commit
a665490b14
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue