8000 GitHub - kospot/egg-vite-vue-plugin: egg vite 支持定制配置
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kospot/egg-vite-vue-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

egg-vite-vue-plugin

依赖说明

依赖的 egg 版本

egg-vite-vue-plugin 版本 egg 1.x
1.x 😁
0.x

依赖的插件

开启插件

// config/plugin.js
exports.vitePlugin = {
  enable: true,
  package: 'egg-vite-vue-plugin',
};
// config/config.default.js
// https://cn.vitejs.dev/guide/api-javascript.html#createserver
// 可以在这里配置vite引用的环境变量之类的
exports.vitePlugin = {
  devServer: false,
  targets: [],
  serverConfig: {}
};

对外暴露了vite和viteServer

使用场景

  • Why and What: egg-vite-vue-plugin插件不支持修改开发模式,所以增加了这个功能

详细配置

请到 config/config.default.js 查看详细配置项说明。

About

egg vite 支持定制配置

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0