3.0.20 • Published 7 days ago
@memo28/vitebuild v3.0.20
@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-swc
vite-plugin-print-urls
vue
@vitejs/plugin-legacy
vite-plugin-print-urls
@vitejs/plugin-vue
@vitejs/plugin-vue-jsx
unplugin-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: '' })
3.0.20
7 days ago
3.0.19
7 days ago
3.0.18
17 days ago
3.0.17
2 months ago
3.0.16
3 months ago
3.0.15
3 months ago
3.0.14
3 months ago
3.0.13
3 months ago
3.0.11
4 months ago
3.0.10
4 months ago
3.0.8
4 months ago
3.0.9
4 months ago
3.0.4
6 months ago
3.0.3
7 months ago
3.0.2
7 months ago
3.0.0
10 months ago
2.3.2
1 year ago
2.3.1
1 year ago
2.3.0
1 year ago
2.2.0
1 year ago
2.1.0
1 year ago
2.0.0
1 year ago
1.0.0
1 year ago