laravel / vite-plugin

Laravel plugin for Vite.
MIT License
799 stars 151 forks source link

Vite is very slow in window system. #214

Closed alokVishu closed 1 year ago

alokVishu commented 1 year ago

Vite Plugin Version

0.7.2

Laravel Version

10.8

Node Version

18.12.1

NPM Version

8.19.2

Operating System

Windows (WSL)

OS Version

8.1.4

Web browser and version

Version 112.0.5615.137 (Official Build) (arm64)

Running in Sail?

No

Description

My project is based on the Latest laravel and Vue 3. I'm running it on the Windows system. Vite takes almost 100x time to load the assets in the Windows system compare to MacOs.

Sometimes I cannot able to serve the build assets.

I have found a hack to serve it.

Steps To Reproduce

Try to run a large project on a window system.

driesvints commented 1 year ago

Try to run a large project on a window system.

Heya. This is pretty vague. What does "large" mean for you?

alokVishu commented 1 year ago

Hello @driesvints,

Thanks for the response.

I'm running this template: https://demos.pixinvent.com/vuexy-vuejs-laravel-admin-template/demo-1/dashboards/analytics

Thanks.

ankurk91 commented 1 year ago

I believe you are running the npm command on Linux terminal.

WSL uses simulated file system which is slow

timacdonald commented 1 year ago

I would assume this is a underlying Vite issue, and unrelated to the Laravel plugin.

We'd need a reproduction repository that shows the issue only occurring when the Laravel plugin is installed to be able to look into this.

timacdonald commented 1 year ago

@alokVishu if you remove the Laravel plugin, does the build still take a long time?

timacdonald commented 1 year ago

Closing this one until we have more information. Feel free to let us know how you go.