use remix-tailwind

This commit is contained in:
MapleLeaf
2021-12-29 15:18:14 -06:00
parent 5e88509973
commit 2ff496c46b
4 changed files with 61 additions and 118 deletions

View File

@@ -1,4 +1,4 @@
import type { MetaFunction, LinksFunction } from "remix"
import type { LinksFunction, MetaFunction } from "remix"
import {
Links,
LiveReload,
@@ -7,14 +7,13 @@ import {
Scripts,
ScrollRestoration,
} from "remix"
import tailwindCss from "./tailwind.css"
export const meta: MetaFunction = () => {
return { title: "New Remix App" }
}
export const links: LinksFunction = () => [
{ rel: "stylesheet", href: tailwindCss },
{ rel: "stylesheet", href: "/tailwind.css" },
]
export default function App() {

View File

@@ -0,0 +1,4 @@
import type { LoaderFunction } from "remix"
import { serveTailwindCss } from "remix-tailwind"
export const loader: LoaderFunction = () => serveTailwindCss()

View File

@@ -5,27 +5,28 @@
"license": "",
"scripts": {
"prepare": "remix setup node && pnpm build",
"dev": "concurrently 'typedoc' 'remix dev' 'tailwindcss --output app/tailwind.css & typedoc'",
"build": "typedoc && tailwindcss --output app/tailwind.css && remix build",
"dev": "concurrently 'typedoc' 'remix dev'",
"build": "typedoc && remix build",
"start": "remix-serve build"
},
"dependencies": {
"@remix-run/react": "^1.1.1",
"@remix-run/serve": "^1.1.1",
"autoprefixer": "^10.4.1",
"postcss": "^8.4.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"remix": "^1.1.1"
"remix": "^1.1.1",
"remix-tailwind": "^0.2.1",
"tailwindcss": "^3.0.8"
},
"devDependencies": {
"@itsmapleleaf/configs": "^1.1.2",
"@remix-run/dev": "^1.1.1",
"@types/react": "^17.0.24",
"@types/react-dom": "^17.0.9",
"autoprefixer": "^10.4.1",
"concurrently": "^6.5.1",
"postcss": "^8.4.5",
"prettier": "^2.5.1",
"tailwindcss": "^3.0.8",
"typedoc": "^0.22.10",
"typescript": "^4.1.2"
},