You've already forked Pandona-Engine
初始化提交
This commit is contained in:
28
vite.config.js
Normal file
28
vite.config.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { resolve } from 'path'
|
||||
import { sceneStylePlugin } from './src/plugins/scene-style-plugin.js'
|
||||
|
||||
export default defineConfig({
|
||||
root: resolve(__dirname, 'template-example'),
|
||||
build: {
|
||||
outDir: resolve(__dirname, 'dist-template'),
|
||||
assetsDir: 'assets'
|
||||
},
|
||||
plugins: [
|
||||
sceneStylePlugin()
|
||||
],
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 3003,
|
||||
open: '/index.html'
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, 'src'),
|
||||
'PE': resolve(__dirname, 'src/index.js')
|
||||
}
|
||||
},
|
||||
define: {
|
||||
'__PE_VERSION__': JSON.stringify('1.0.0')
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user