1 Star 0 Fork 0

Json_Lee/react-redux-router-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.ts 794 Bytes
一键复制 编辑 原始数据 按行查看 历史
Json_Lee 提交于 2022-12-07 15:03 . first commit
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from "path"
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: "./",
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
"@assets": resolve(__dirname, "./src/assets"),
"@components": resolve(__dirname, "./src/components"),
"@router": resolve(__dirname, "./src/router"),
"@page": resolve(__dirname, "./src/pages"),
"@utils": resolve(__dirname, "./src/utils"),
"@store": resolve(__dirname, "./src/model")
}
},
server: {
host: "0.0.0.0"
},
build: {
assetsDir: "./static",
outDir: resolve(__dirname, "./dist")
},
css: {
modules: {
localsConvention: "camelCase"
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jsonlee_lee/react-redux-router-demo.git
git@gitee.com:jsonlee_lee/react-redux-router-demo.git
jsonlee_lee
react-redux-router-demo
react-redux-router-demo
master

搜索帮助