amir5's avatar
Level 7

Do you put your assets in public or resources to be build?

Think you have a ready design with assets including css,js files, image and etc. Do you put them in public and easily use them or in resources/{js,css,images}, and then using vite to build them??

0 likes
2 replies
Tray2's avatar

That depends, if they are already minimized and optimized, then I'd probably put them in the public directory, otherwise I would run them through the build process.

1 like
martinbean's avatar

@amir5 Sources (files to be build) go in resources. The final built assets (plain CSS and JavaScript files) then go in public

/resources → Build with Vite → new files written to /public

1 like

Please or to participate in this conversation.