Configured Tailwind
This commit is contained in:
parent
dea478b660
commit
2908b36ecd
@ -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>
|
||||
|
@ -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",
|
||||
|
@ -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 */
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user