Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Laravel/Vite integration... why are you using public/assets?


I swore a few versions ago your Laravel integration properly configured Vite and tailwind.config.js?

Now it looks like you're just putting everything pre-compiled into public/assets?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)

Laravel’s Vite integration isn’t about “going back” to public assets, it’s about shipping predictable, cacheable files that the browser can actually reach. At the end of the day, the URL is what matters—just like a music app where must resolve cleanly, your compiled CSS and JS must live at a stable, public URL. Vite builds fast, versioned assets, and Laravel serves them from public because that’s the contract of the web: anything the browser needs must be publicly accessible, optimized, and cache-friendly. Hiding assets doesn’t make an app( veduhd.app/vedu-for-ios/ ) more modern; clean URLs and reliable delivery do.


Hi

Yes, this avoids build complexity. If you want a full Vite compilation with Metronic source files, we will consider adding it soon.

Thanks



If the goal is faster builds or avoiding extra config, this approach works, but it might create inconsistencies between local development and production.



That's basically my point, it seems like with v9.2+ and Tailwind v4 they threw their hands up (even in the docs) and just said "meh, only use the precompiled styles and scripts".


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(