Configured Tailwind

This commit is contained in:
Jordan Roher 2023-12-17 22:20:44 -08:00
parent dea478b660
commit 2908b36ecd
3 changed files with 5 additions and 3 deletions

View File

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<title>My Website</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" crossorigin="" href="./main.css" />
</head>
<body>
<div id="root"></div>

View File

@ -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",

View File

@ -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 */
{