Go3shom's avatar

Compiling Resources File Using Vite

Hello Guys,

I'm working on a Laravel_11/ Bootstrap_5 project.
In the integrating phase of my own Admin Panel and the blade-ready bought theme; and after running "npm run build" it deleted all the "public" files except of .css, .js, .woff, files. like this
Until now I didn't find any solution except moving the uncompiled "Giant Files" from resources to public like this
My questions are:
  • How to compile the whole folders & files in resources folder to extract & minify the only used codes?
  • What type of files/ folders should be included in "vite.config.js", and "blade @vite([])" respectively?
Thanks in advance
0 likes
0 replies

Please or to participate in this conversation.