Star
$ npm i -g wp2vite
$ cd your_workspace/your_project
$ wp2vite
$ npm install
$ npm run vite-start

<!-- old project menu -->
build
config
docs
node_modules
public
src
    components
    pages
    App.tsx
    main.js
    setupProxy.js
.eslintignore
.eslintrc.js
.gitignore
jest.config.js
package.json
package-lock.json
README.md
tsconfig.json
      
      

<!-- new project menu -->
build
config
docs
node_modules
public
src
    components
    pages
    App.tsx
    main.js
    setupProxy.js
.eslintignore
.eslintrc.js
.gitignore
index.html
jest.config.js
package.json
package-lock.json
README.md
tsconfig.json
vite.config.js
      

A front-end project automatic conversion tool, You can make your webpack project support vite.

wp2vite will not delete your webpack configuration, but will inject vite configuration into your project to support vite.

The development speed is about 80% faster than that of webpack, and the construction speed is about 50% faster than that of webpack.

Read API and CLI build options reference

Fork me on GitHub