diff --git a/resources/ts/main.tsx b/resources/ts/main.tsx index 6188f90..b06e3eb 100644 --- a/resources/ts/main.tsx +++ b/resources/ts/main.tsx @@ -2,6 +2,7 @@ import React from "react"; import ReactDOM from "react-dom/client"; import App from "./App"; import { PrimeReactProvider } from 'primereact/api'; +import '@resources/css/app.css'; const rootElement = document.getElementById("app"); if (rootElement) { diff --git a/resources/views/application.blade.php b/resources/views/application.blade.php index e24eaf3..d2281a3 100644 --- a/resources/views/application.blade.php +++ b/resources/views/application.blade.php @@ -8,7 +8,6 @@ {{ config('app.name') }} @vite('resources/ts/main.tsx') - @vite('resources/css/app.css') diff --git a/vite.config.ts b/vite.config.ts index e868bde..0ae5666 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ resolve: { alias: { "@": path.resolve(__dirname, "resources/ts"), + '@resources': path.resolve(__dirname, "resources"), "@components": path.resolve(__dirname, "resources/ts/components"), "@utils": path.resolve(__dirname, "resources/ts/utils"), },