It looks like the issue is related to the vite.config.js file. The input array in the laravel plugin is not being read properly when the project is deployed to the production server.
To fix this issue, you can try adding the refresh option to the laravel plugin in the vite.config.js file. This will force Vite to re-read the input array and build the manifest file properly.
plugins: [
laravel({
input: [
"resources/css/pages/authentication.css",
"resources/css/base/pages/authentication.css",
"resources/css/app.css",
"resources/js/core/app-root.js",
// Other CSS & JSS files are here
],
refresh: true, // Add this line
}),
react(),
],
You can also try running the vite build command before deploying the project to the production server. This will ensure that the manifest file is built properly before the project is deployed.
