实现单机版

This commit is contained in:
叶志超
2021-12-22 19:32:34 +08:00
parent 5e1601c8ea
commit 141aa83f2d
16 changed files with 364 additions and 406 deletions

View File

@@ -1,6 +1,7 @@
import { join } from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import copy from 'rollup-plugin-copy'
const outDir = join(__dirname, 'dist/render')
const renderDir = join(__dirname, 'src/render')
@@ -10,7 +11,11 @@ const publicDir = join(__dirname, 'public')
export default defineConfig({
publicDir,
base: './',
plugins: [vue()],
plugins: [vue(),copy({
targets: [
{ src: './node_modules/cesium/Build/Cesium', dest: publicDir }, //执行拷贝
]
})],
build: {
outDir,
emptyOutDir: true,