bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.77k stars 1.32k forks source link

Support vite #227

Closed IndexXuan closed 3 years ago

IndexXuan commented 3 years ago

Modify less than 20-lines code. this project can now use vite for development. @bencodezen can you have a try and review it. Thanks a lot.

IndexXuan commented 3 years ago

devServer start time: vite:5s page show with yarn vite vue-cli:10s page show with yarn dev

HRM: vite:about 0.3s vue-cli:1s ~ 2s

bencodezen commented 3 years ago

Hey @IndexXuan. Thanks for this PR! I actually want to leave the main branch as webpack since Vite is still in early development and may not be applicable to all applications.

I would be interested in starting a vite branch though and happy to work with you on getting that up and running. What do you think?

IndexXuan commented 3 years ago

yes. I am focus on vue-cli and vite in my recent daily work. this PR is show it is possible. very happy to see the vite template. thank you.