Skip to content

Commit

Permalink
feat: update default boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Sep 17, 2024
1 parent 1e5a9b3 commit 0c74990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ getenv('APP_NAME') ?? 'Leaf MVC' }}</title>
<title>{{ _env('APP_NAME', 'My Leaf MVC App') }}</title>
<link rel="shortcut icon" href="https://leafphp.dev/logo-circle.png" type="image/x-icon">

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

Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import leaf from '@leafphp/vite-plugin';
export default defineConfig({
plugins: [
leaf({
input: ['app/views/js/app.js', 'app/views/css/app.css'],
input: ['app/views/css/app.css'],
refresh: true,
}),
],
Expand Down

0 comments on commit 0c74990

Please sign in to comment.