Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tnfe/wp2vite
一个让webpack项目支持vite的前端项目的转换工具。A front-end project automatic conversion tool。
https://github.com/tnfe/wp2vite
vite vitejs webpack webpack-to-vite webpack-vite webpack5
Last synced: 28 days ago
JSON representation
一个让webpack项目支持vite的前端项目的转换工具。A front-end project automatic conversion tool。
- Host: GitHub
- URL: https://github.com/tnfe/wp2vite
- Owner: tnfe
- License: mit
- Created: 2021-03-29T08:24:09.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-17T14:22:33.000Z (almost 3 years ago)
- Last Synced: 2024-04-14T06:55:52.669Z (7 months ago)
- Topics: vite, vitejs, webpack, webpack-to-vite, webpack-vite, webpack5
- Language: JavaScript
- Homepage: https://tnfe.github.io/wp2vite/
- Size: 609 KB
- Stars: 714
- Watchers: 18
- Forks: 49
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
English | [简体中文](./README.zh-CN.md)
# wp2vite
It has been officially included,[detail](https://github.com/vitejs/awesome-vite#vue-cli)## Overview
A front-end project automatic conversion tool, You can make your [webpack](https://webpack.js.org/) project support [vite](https://vitejs.dev/).
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.
## Examples
- [vite-concent-pro](https://github.com/tnfe/vite-concent-pro)## Detailed
### react
- react projects created by [create-react-app](https://github.com/facebook/create-react-app) are supported, whether or not eject is performed.
- react projects created by [react-app-rewired](https://github.com/timarney/react-app-rewired) are supported.
- react projects created by [webpack.config.js](https://github.com/webpack/webpack) are supported.### vue
- vue projects created by [vue-cli](https://github.com/vuejs/vue-cli) are supported, whether or not contains `vue.config.js` file.### other
- other projects crated by [webpack.config.js](https://github.com/webpack/webpack) are supported.## install
```
npm install -g wp2vite
```
## use
```
cd yourwork/your_project // go to your project catalog
wp2vite
or
wp2vite --config=./webpack.config.js // with config filewp2vite -v // check wp2vite version
npm install // install dependencies
npm run dev // start server
or
npm run vite-start // start server
```## Contribute
If you spotted a bug, please submit a pull request with a bug fix.
If you would like to add a feature or change existing behaviour, open an [issue](https://github.com/tnfe/wp2vite/issues) and tell about what exactly you want to change/add.
## License
[MIT](./LICENSE)