Skip to content

Commit

Permalink
feat: update Vite configuration and import styles for improved asset …
Browse files Browse the repository at this point in the history
…management
  • Loading branch information
Ism1tha committed Jan 28, 2025
1 parent 9823137 commit 4c103ca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/ts/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion resources/views/application.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<title>{{ config('app.name') }}</title>
<link rel="icon" href="{{ asset('favicon.ico') }}" />
@vite('resources/ts/main.tsx')
@vite('resources/css/app.css')
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
},
Expand Down

0 comments on commit 4c103ca

Please sign in to comment.