mirror of
https://github.com/CompeyDev/seal.devcomp.xyz.git
synced 2024-12-12 04:40:41 +00:00
fix: tailwind configs for trunk build
This commit is contained in:
parent
463a2d6c00
commit
7b7536d702
4 changed files with 16 additions and 14 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,6 +1,5 @@
|
||||||
# production
|
# production
|
||||||
/dist
|
/dist
|
||||||
/styles/tailwind.css
|
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||||
<title>Trunk | Yew | Tailwind</title>
|
<title>seal.devcomp.xyz</title>
|
||||||
|
|
||||||
<link data-trunk rel="tailwind-css" href="styles/tailwind.css"/>
|
<link data-trunk rel="tailwind-css" href="styles/tailwind.css"/>
|
||||||
<link data-trunk rel="css" href="styles/globals.css"/>
|
<link data-trunk rel="css" href="styles/globals.css"/>
|
||||||
|
|
3
styles/tailwind.css
Normal file
3
styles/tailwind.css
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
|
@ -1,15 +1,15 @@
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
purge: {
|
mode: "jit",
|
||||||
mode: "all",
|
content: {
|
||||||
content: [
|
files: ["src/**/*.rs", "src/**/*.html", "index.html", "styles/*.css"]
|
||||||
"./src/**/*.rs",
|
},
|
||||||
"./src/**/*.html",
|
darkMode: "media", // 'media' or 'class'
|
||||||
"./public/index.html",
|
theme: {
|
||||||
"./styles/*.css",
|
extend: {},
|
||||||
],
|
},
|
||||||
},
|
variants: {
|
||||||
theme: {},
|
extend: {},
|
||||||
variants: {},
|
},
|
||||||
plugins: [],
|
plugins: [],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue