From 2908b36ecd74f87834da5fc27771177c117d0fc6 Mon Sep 17 00:00:00 2001 From: Jordan Roher Date: Sun, 17 Dec 2023 22:20:44 -0800 Subject: [PATCH] Configured Tailwind --- index.html | 1 + package.json | 5 +++-- tailwind.config.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 290a279..69c016f 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ My Website +
diff --git a/package.json b/package.json index c6a3d96..56f1a1a 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,9 @@ "version": "1.3.0", "type": "commonjs", "scripts": { - "build": "tsc && node ./dist/static.js && npm run html", - "html": "html-minifier --remove-comments --collapse-whitespace --input-dir ./dist --output-dir ./dist --file-ext html" + "build": "tsc && node ./dist/static.js && npm run html && npm run tailwind", + "html": "html-minifier --remove-comments --collapse-whitespace --input-dir ./dist --output-dir ./dist --file-ext html", + "tailwind": "npx tailwindcss -i ./src/tailwind.css -o ./dist/main.css" }, "dependencies": { "@types/node": "^20.10.4", diff --git a/tailwind.config.js b/tailwind.config.js index c379dac..5a92381 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,6 +1,6 @@ /** @type {import('tailwindcss').Config} */ export default { - content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], + content: ["./dist/index.html"], safelist: [ /* Built from icon.tsx */ {