skip to Main Content

Laravel – How I can import all js and all css that reside in resourced folder, in my vite config without need to define them one by one?

In my laravel 10 project I load a js as: @vite(['resources/js/myjs.js']) And my vite.config.js contains the follwoing settings import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import inject from "@rollup/plugin-inject"; export default defineConfig({ plugins: [ laravel({ input: […

VIEW QUESTION
Back To Top
Search