Questions tagged [laravel-vite]

45 questions
0
votes
0 answers

Vite dev proxy 'new URL(url, import.meta.url)'

Good day! I have recently switched from laravel-max (webpack) to laravel-vite (vite). Web page (index.php) is served from php server and vite hmr separately for js dev server. I wanted to convert workers by workerize-loader to web worker modules in…
ayb jax
  • 121
  • 1
  • 7
0
votes
0 answers

how to set laravel vite config directory?

I have here my configuration below. Is there a way to select the directory, instead of specifying each css file? I want to modularize loading of css. export default defineConfig({ plugins: [ laravel({ input: [ …
schutte
  • 1,949
  • 7
  • 25
  • 45
0
votes
0 answers

Laravel 9 vite blade bootstrap datatable load only one page

How to load any js file in only one page Laravel 9 vite. Laravel 9 vite blade bootstrap datatable load only one page How to load any js file in only page Laravel 9 vite. Laravel 9 vite blade bootstrap datatable load only one page
0
votes
0 answers

Vite does not bundle assets that are referenced within sub SCSS if the imported SCSS doesn't live in same folder as the entry SCSS file

Using vite with laravel 9, working with the default configuration, I have multiple folder structures for my scss, inside which some have an scss that imports fonts, and some have images as well. During the development, I found out that all assets…
Emmanuel David
  • 410
  • 7
  • 17
0
votes
1 answer

(After migrating to Vite) Some stacked scripts are executed before they should?

so I just migrated to Vite, and almost everything works, except... In a Blade component I'm adding a script to my scripts stack : @push('scripts') @endpush In app.js I have defined window.myfoo = () => { …
Jeremy Belolo
  • 4,319
  • 6
  • 44
  • 88
0
votes
1 answer

Laravel 9 vite - internal script is executed before JS bundled via vite

I've created 'test.js' file in 'resources/js/' and added console.log(first) to it In the welcome.blade.php I have something like that: @vite(['resources/js/test.js'])