1 Star 0 Fork 89

nygula/scene-editor

forked from vis-three/scene-editor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.js 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
Shiotsuki 提交于 2024-03-08 09:59 +08:00 . feat:version0.6.16
import { defineConfig } from "vite";
import { createVuePlugin } from "vite-plugin-vue2";
import mdPlugin from "vite-plugin-markdown";
import eslintPlugin from "vite-plugin-eslint";
import path from "path";
export default defineConfig({
base: "/scene-editor",
build: {
outDir: path.resolve(__dirname, "./docs"),
rollupOptions: {
input: {
index: path.resolve(__dirname, "./index.html"),
preview: path.resolve(__dirname, "./preview.html"),
},
output: {
manualChunks: {
three: ["three"],
},
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"@ROOT": path.resolve(__dirname),
vue: "vue/dist/vue.esm.js",
},
},
css: {
preprocessorOptions: {
less: {
additionalData: '@import "./src/assets/less/common.less";',
},
},
},
plugins: [
eslintPlugin({
include: ["src/**/*.js", "src/**/*.vue", "src/*.js", "src/*.vue"],
}),
createVuePlugin({
compilerOptions: {
whitespace: "condense",
},
jsx: true,
jsxOptions: {
compositionAPI: true,
},
}),
mdPlugin.plugin({
mode: "markdown",
}),
],
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nygula/scene-editor.git
git@gitee.com:nygula/scene-editor.git
nygula
scene-editor
scene-editor
master

搜索帮助