fix: import css production
This commit is contained in:
parent
0c4286b252
commit
62366e5edb
2 changed files with 2 additions and 7 deletions
|
|
@ -5,8 +5,7 @@ import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||||
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
|
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
|
||||||
import { Toaster } from "~/client/components/ui/sonner";
|
import { Toaster } from "~/client/components/ui/sonner";
|
||||||
import { useServerEvents } from "~/client/hooks/use-server-events";
|
import { useServerEvents } from "~/client/hooks/use-server-events";
|
||||||
|
import "../app.css";
|
||||||
import appCss from "../app.css?url";
|
|
||||||
|
|
||||||
export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()({
|
export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()({
|
||||||
server: {
|
server: {
|
||||||
|
|
@ -19,10 +18,6 @@ export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()(
|
||||||
{ title: "Zerobyte - Open Source Backup Solution" },
|
{ title: "Zerobyte - Open Source Backup Solution" },
|
||||||
],
|
],
|
||||||
links: [
|
links: [
|
||||||
{
|
|
||||||
rel: "stylesheet",
|
|
||||||
href: appCss,
|
|
||||||
},
|
|
||||||
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
|
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
|
||||||
{
|
{
|
||||||
rel: "preconnect",
|
rel: "preconnect",
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ import babel from "vite-plugin-babel";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
tailwindcss(),
|
|
||||||
tsconfigPaths(),
|
tsconfigPaths(),
|
||||||
babel({
|
babel({
|
||||||
filter: /\.[jt]sx?$/,
|
filter: /\.[jt]sx?$/,
|
||||||
|
|
@ -23,6 +22,7 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
viteReact(),
|
viteReact(),
|
||||||
|
tailwindcss(),
|
||||||
],
|
],
|
||||||
build: {
|
build: {
|
||||||
outDir: "dist",
|
outDir: "dist",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue