1 Star 0 Fork 89

seamanx/three-vis-display-editor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.js 856 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { defineConfig } from "vite";
import { createVuePlugin } from "vite-plugin-vue2";
import path from "path";
const apiList = ["app", "template", "texture", "model", "component"];
const proxy = {};
apiList.forEach((url) => {
proxy[`/${url}`] = {
target: "http://localhost:3001",
changeOrigin: true,
};
});
console.log(proxy);
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
vue: "vue/dist/vue.esm.js",
},
},
css: {
preprocessorOptions: {
less: {
additionalData: '@import "./src/assets/less/common.less";',
},
},
},
plugins: [
createVuePlugin({
compilerOptions: {
whitespace: "condense",
},
jsx: true,
jsxOptions: {
compositionAPI: true,
},
}),
],
server: {
proxy,
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/seamanx/three-vis-display-editor.git
git@gitee.com:seamanx/three-vis-display-editor.git
seamanx
three-vis-display-editor
three-vis-display-editor
master

搜索帮助