Skip to content

Commit 0c74990

Browse files
committed
feat: update default boilerplate
1 parent 1e5a9b3 commit 0c74990

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/views/index.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<title>{{ getenv('APP_NAME') ?? 'Leaf MVC' }}</title>
7+
<title>{{ _env('APP_NAME', 'My Leaf MVC App') }}</title>
88
<link rel="shortcut icon" href="https://leafphp.dev/logo-circle.png" type="image/x-icon">
99

1010
{{-- assets() points to the public/assets folder --}}
@@ -14,7 +14,9 @@
1414
You generally want to keep all your css and js in the public folder
1515
unless you are using a bundler like vite. vite() looks for assets in
1616
the app/views folder by default. You can uncomment the line below to
17-
use vite. Be sure to run `npm run dev` or `npm run build` first.
17+
use vite.
18+
19+
Be sure to run `npm install` and then `npm run dev` or `npm run build` first.
1820
--}}
1921
{{-- {{ vite('css/app.css') }} --}}
2022

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import leaf from '@leafphp/vite-plugin';
44
export default defineConfig({
55
plugins: [
66
leaf({
7-
input: ['app/views/js/app.js', 'app/views/css/app.css'],
7+
input: ['app/views/css/app.css'],
88
refresh: true,
99
}),
1010
],

0 commit comments

Comments
 (0)