The error message suggests that the file 'public/frontend/css/animate.css' cannot be found in the Vite manifest. This could be due to a few reasons:
-
The file is not being compiled by Vite. Make sure that the file is included in the Vite configuration file (vite.config.js) and that it is being processed by Vite.
-
The file path is incorrect. Double-check that the file path is correct and that it matches the actual file location.
-
The file has not been uploaded to the live server. Make sure that the file has been uploaded to the correct location on the live server.
Here's an example of how to include the file in the Vite configuration file:
// vite.config.js
import { defineConfig } from 'vite';
export default defineConfig({
build: {
assetsInlineLimit: 0,
outDir: 'public/build',
rollupOptions: {
input: {
main: './resources/js/main.js',
app: './resources/js/app.js',
},
},
},
publicDir: 'public',
server: {
port: 3000,
},
optimizeDeps: {
include: ['animate.css'],
},
});
Make sure to install the animate.css package using npm or yarn:
npm install animate.css
Then, update the Vite manifest in app.blade.php to include the animate.css file:
<a href='/@vite'>@vite</a>([
'resources/sass/app.scss',
'resources/js/app.js',
'animate.css',
'public/frontend/css/glightbox.min.css',
'public/frontend/css/LineIcons.2.0.css',
'public/frontend/css/tiny-slider.css',
'public/frontend/css/main.css',
]);