diff --git a/.air.toml b/.air.toml index b7dbf81..a9cd1f7 100644 --- a/.air.toml +++ b/.air.toml @@ -21,7 +21,7 @@ tmp_dir = "tmp" poll = false poll_interval = 0 post_cmd = [] - pre_cmd = ["git submodule update --init --recursive; git rev-parse --short HEAD > handlers/VERSION; git rev-parse --short HEAD > cmd/VERSION; cd proxychain/codegen && go run codegen.go && cd ../../handlers/api_modifiers_codegen && go run api_modifiers_codegen.go"] + pre_cmd = ["git submodule update --init --recursive; git rev-parse --short HEAD > handlers/VERSION; git rev-parse --short HEAD > cmd/VERSION; cd proxychain/codegen && go run codegen.go && cd ../../handlers/api_modifiers_codegen && go run api_modifiers_codegen.go && pnpm watch"] rerun = false rerun_delay = 500 send_interrupt = false diff --git a/package.json b/package.json index 3f49903..1ba2e1e 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "scripts": { - "build": "pnpx tailwindcss -i ./styles/input.css -o ./styles/output.css --build && pnpx minify ./styles/output.css > ./handlers/styles.css" - }, - "devDependencies": { - "minify": "^10.5.2", - "tailwindcss": "^3.3.5" - } -} \ No newline at end of file + "scripts": { + "build": "pnpx tailwindcss -i ./styles/input.css -o ./styles/output.css --build --minify", + "watch": "pnpx tailwindcss -i ./styles/input.css -o ./styles/output.css --build --minify --watch" + }, + "devDependencies": { + "tailwindcss": "^3.3.6" + } +}