Skip to content

Vite watches the vendor folder #152

@stebogit

Description

@stebogit
  • Laravel Vite Plugin Version: 0.6.1
  • Laravel Version: 9.31.0
  • Node Version: 16.17.1
  • NPM Version: 8.15.0
  • Host operating system: Linux (Homestead, Ubuntu 18.04.5 LTS)
  • Web Browser & Version: -
  • Running in Sail / Docker: No

Description:

Just installed Breeze (php artisan breeze:install) and tried to serve the assets (npm run dev) and I got this error, suggesting vite is watching the vendor folder (which I assume should be ignored, by default):

Screen Shot 2022-09-30 at 2 56 43 PM

The command npm run build works fine anyway.

Steps To Reproduce:

This is my config, I tried to even defining a more restrictive refresh path:

export default defineConfig({
    plugins: [
        laravel({
            input: [
                'resources/css/app.css',
                'resources/js/app.js',
            ],
            // none of these work
            // refresh: true,
            // refresh: false,
            refresh: [
                'resources/**',
            ],
        }),
    ],
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions