Vite push scripts and styles #43194
-
I used to push the scripts and styles from the inner pages. It was possible with Webpack and Laravel Mix.
Now I am testing Vite. Unfortunately, I can't use
One way I found is to parse |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I can actually push vite resources without issues. Just wrap the {{-- Works --}}
@push('scripts')
@vite('resources/js/app.js')
@endpush
{{-- This works as well --}}
@pushonce('scripts')
@vite('resources/js/app.js')
@endpushonce |
Beta Was this translation helpful? Give feedback.
I can actually push vite resources without issues. Just wrap the
@vite
directive in@push()...@endpush
directives