3 Star 3 Fork 1

SunSeaGear/文鳐-uniapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.js 838 Bytes
一键复制 编辑 原始数据 按行查看 历史
SunSeaGear 提交于 2023-08-25 16:43 +08:00 . 更新依赖版本
import uni from '@dcloudio/vite-plugin-uni'
import { fileURLToPath, URL } from 'node:url'
import eslintPlugin from 'vite-plugin-eslint'
import ENV_CONFIG from './.env'
// https://vitejs.dev/config/
export default ({
mode
}) => {
return {
plugins: [
uni(),
eslintPlugin({
include: ['src/**/*.js', 'src/**/*.vue', 'src/*.js', 'src/*.vue'],
cache: false,
emitWarning: true,
emitError: true
})
],
transpileDependencies: ['uview-plus'],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
extensions: ['.js', '.vue', '.json']
},
server: {
host: '0.0.0.0',
port: 9528,
open: true // 运行自动打开浏览器
},
define: {
'process.env.config': ENV_CONFIG // 配置一
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/sunseagear/wenyao-uniapp.git
git@gitee.com:sunseagear/wenyao-uniapp.git
sunseagear
wenyao-uniapp
文鳐-uniapp
master

搜索帮助