0

I using Laravel 9 and vite^3.0.4. I did all kind of confirmation and migration it's working fine in npm run dev but not working in npm run build.

resources/vendors/css/forms/select/select2.min.css

My vite configuration

vite.config.js

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
    plugins: [
        laravel({
            input: [
                'resources/css/app.css',
                'resources/js/core/app-root.js',
            ],
            refresh: true,
        })
    ],

   server: {
        hmr: {
            host: 'localhost'
        }
    }
});

This file is exist and working in development environment. While I run npm run build I got this error. enter image description here

npm run dev 

terminal enter image description here

npm run build

enter image description here

Tanmoy Biswas
  • 171
  • 1
  • 1
  • 17

0 Answers0