@memo28/vitebuild
@memo28/vitebuild
useag
// in vue.js
export default defineConfig(new Engine().setTechnologyStack('vue').addPlugins().getBuildConfig())
// in react.js
export default defineConfig(new Engine().setTechnologyStack('react').addPlugins().getBuildConfig())
setTechnologyStack
定义技术栈返回指定技术栈默认插件
-
react@vitejs/plugin-legacy@vitejs/plugin-react-swcvite-plugin-print-urls
-
vue@vitejs/plugin-legacyvite-plugin-print-urls@vitejs/plugin-vue@vitejs/plugin-vue-jsxunplugin-vue-macros/vite
new Engine().setTechnologyStack('react').getBuildConfig()
addPlugins
添加插件助手
new Engine()
.setTechnologyStack('react')
.addPlugins(plugins => {
plugins.addAlias(config).addSassDts(config)
})
.getBuildConfig({ root: '', plugins: [] })
getBuildConfig
返回所有配置参数
new Engine().setTechnologyStack('react').getBuildConfig({ root: '' })
Related Packages
vite-plugin-git-revision
Vite plugin that generates VERSION and COMMITHASH files during build based on a...
21,961
11
vite-plugin-resolve-extension-vue
A temporary workaround for issue No loader is configured for ".vue"
6,993
5
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 3.0.20 | ^3.3.4 | MIT | |
| 3.0.19 | ^3.3.4 | MIT | |
| 3.0.18 | ^3.3.4 | MIT | |
| 3.0.17 | ^3.3.4 | MIT | |
| 3.0.16 | ^3.3.4 | MIT | |
| 3.0.15 | ^3.3.4 | MIT | |
| 3.0.14 | ^3.3.4 | MIT | |
| 3.0.13 | ^3.3.4 | MIT | |
| 3.0.11 | ^3.3.4 | MIT | |
| 3.0.10 | ^3.3.4 | MIT | |
| 3.0.9 | ^3.3.4 | MIT | |
| 3.0.8 | ^3.3.4 | MIT | |
| 3.0.4 | ^3.3.4 | MIT | |
| 3.0.3 | ^3.3.4 | MIT | |
| 3.0.2 | ^3.3.4 | MIT | |
| 3.0.0 | ^3.3.4 | MIT | |
| 2.3.2 | ^3.2.45 | MIT | |
| 2.3.1 | ^3.2.45 | MIT | |
| 2.3.0 | ^3.2.45 | MIT | |
| 2.2.0 | ^3.2.45 | MIT | |
| 2.1.0 | ^3.2.45 | MIT | |
| 2.0.0 | ^3.2.45 | MIT | |
| 1.0.0 | ^3.2.45 | MIT |