-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Css & Js is not working after run php artisan jetstrap:swap livewire command in laravel version 9 #96
Comments
I resolved it by including the scss files generated by jetstrap. I had already installed vite.config.js import { defineConfig } from 'vite';
import laravel, { refreshPaths } from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: [
+ 'resources/sass/app.scss',
'resources/js/app.js',
],
refresh: [
...refreshPaths,
'app/Http/Livewire/**',
],
}),
],
}); Install sass with reources/sass/app.scss : change directory path of bootstrap - @import '~bootstrap/scss/bootstrap';
+ @import 'node_modules/bootstrap/scss/bootstrap'; Change your Remove both - <link rel="stylesheet" href="{{ asset('css/app.css') }}">
- <script src="{{ mix('js/app.js') }}" defer></script>
+ @vite(['resources/sass/app.scss', 'resources/js/app.js']) Re build and compile assests for build npm run build
npm run dev |
Css & Js is not working after run php artisan jetstrap:swap livewire command in laravel version 9
The text was updated successfully, but these errors were encountered: