hawk86104 4a5286a367 1、修复了一些小的问题
2、增加了 "vite-plugin-glsl": "0.2.2" 版本,优化glsl 的展示
2024-03-07 10:30:18 +08:00

55 lines
1.2 KiB
JavaScript

/*
* @Description:
* @Version: 1.668
* @Autor: 地虎降天龙
* @Date: 2023-10-16 10:53:09
* @LastEditors: 地虎降天龙
* @LastEditTime: 2024-03-07 10:19:54
*/
// import { resolve } from 'path';
import { join } from 'path';
import { defineBuildConfig } from '@fesjs/fes'
import { templateCompilerOptions } from '@tresjs/core'
import UnoCSS from 'unocss/vite'
import glsl from 'vite-plugin-glsl'
export default defineBuildConfig({
title: 'TvT.js',
publicPath: './',
access: {
roles: {
admin: ['*'],
manager: ['/'],
},
},
layout: {
navigation: null,
},
enums: {
status: [
['0', '无效的'],
['1', '有效的'],
],
},
//add by 地虎降天龙
viteVuePlugin: {
...templateCompilerOptions,
},
viteOption: {
base: "./",
plugins: [
UnoCSS({
/* options */
}),
glsl()
],
server: {
host: "0.0.0.0"
},
},
alias: { PLS: join(__dirname, './src/plugins') },
// { find: 'pls', replacement: resolve(__dirname, './src/plugins') },
// { '@': join(__dirname, '/src') }
});