diff --git a/bun.lockb b/bun.lockb index d88e442..c5a0599 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 71bf24a..e992360 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "test": "echo \"Error: no test specified\" && exit 1", "db:migrate": "dotenvx run -f .env.production -- bun run dbmate up", "prepare": "cp .hooks/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit", - "minify": "html-minifier-terser --input-dir src/views --output-dir dist/views --file-ext eta --collapse-whitespace --remove-comments --minify-css true --minify-js true && cleancss -o dist/public/output.min.css src/public/output.css", + "minify": "html-minifier-terser --input-dir src/views --output-dir dist/views --file-ext eta --collapse-whitespace --remove-comments --minify-css true --minify-js true && bun run tailwindcss -i ./src/public/index.css -o ./dist/public/output.min.css --minify", "build-linux": "dotenvx run -f .env.production -- bun build --compile --minify --sourcemap --target=bun-linux-x64-modern src/index.js --outfile ./dist/z", "deploy": "bun run build-linux && bun run minify && fly deploy && bun run clean", "clean": "rm -rf dist/*" @@ -33,7 +33,6 @@ "pino": "^9.4.0" }, "devDependencies": { - "clean-css-cli": "^5.6.3", "dbmate": "^2.20.0", "eslint": "^9.10.0", "html-minifier-terser": "^7.2.0", diff --git a/tailwind.config.js b/tailwind.config.js index f254157..f414cca 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,5 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { + jit: true, content: ["./src/**/*.{html,js,eta}"], theme: { extend: {},