44 Star 751 Fork 506

Mall4j商城系统 / Mall4j商城的Uniapp商城端(移动端商城)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.js 813 Bytes
一键复制 编辑 原始数据 按行查看 历史
哎哟嘿 提交于 2023-11-09 14:50 . vue3框架
import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import path from 'path'
import AutoImport from 'unplugin-auto-import/vite'
import h5ProdEffectPlugin from 'uni-vite-plugin-h5-prod-effect'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
uni(),
AutoImport({
imports: [
'vue',
'uni-app'
],
dirs: [
'src/utils',
'src/wxs/**'
],
dts: 'src/auto-imports.d.ts',
eslintrc: {
enabled: true
}
}),
// 对h5 production环境打包时的特殊处理,否则uni-crazy-router在这个环境会异常
h5ProdEffectPlugin()
],
server: {
host: true,
port: 80,
open: true
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/gz-yami/mall4uni.git
git@gitee.com:gz-yami/mall4uni.git
gz-yami
mall4uni
Mall4j商城的Uniapp商城端(移动端商城)
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891