Skip to content

Commit

Permalink
removed clean-css in favor of tailwind native minifier
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtheman committed Sep 18, 2024
1 parent 8b59d35 commit d6eb076
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
jit: true,
content: ["./src/**/*.{html,js,eta}"],
theme: {
extend: {},
Expand Down

0 comments on commit d6eb076

Please sign in to comment.