-
-
Notifications
You must be signed in to change notification settings - Fork 92
Compiling Assets (ViteJs)
Asep edited this page Oct 24, 2023
·
2 revisions
Make sure you have installed all package modules in all folders, if not you can run the command below.
php artisan module:npm --install
To run ViteJs you only need to execute one of the NPM scripts that is included with the default Ladmin package.json
file
// Run ViteJs
$ npm run dev
// Run all ViteJs and minify output...
$ npm run build
After the asset version is created, you need to call it in the layout file that you have provided previously by:
<head>
. . .
@vite([
'Modules/Blog/Resources/js/blog.js',
'Modules/Blog/Resources/css/blog.css'
])
. . .
</head>
For more info on Asset Bundling (Vite) view the documentation here: https://laravel.com/docs/master/vite
- #1 Create Module
- #2 Create Menu
- #3 Route
- #4 Create DataTables
- #5 Template Layout
- #6 Create Model
- #7 Create Command
- #8 Create Component
- #9 Broadcast Notification
- #10 Group Search
- #11 Flashing Message
- #12 Compiling Assets (ViteJs)
- #13 Ladmin Option
- #14 Utility & Helpers
- #15 Vendor Publish
- #16 Custom Style
- #17 Ladmin Awesome
- #18 Make Money