1 Star 0 Fork 85

lsgsx/scene-editor

forked from vis-three/scene-editor 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
vite.config.js 1.20 KB
Copy Edit Raw Blame History
Shiotsuki authored 2024-03-08 09:59 . 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",
}),
],
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ssjylsg/scene-editor.git
git@gitee.com:ssjylsg/scene-editor.git
ssjylsg
scene-editor
scene-editor
master

Search

D67c1975 1850385 1daf7b77 1850385