update build action

This commit is contained in:
2025-03-18 20:42:25 +08:00
parent eb43d88e44
commit 1b6ec67ba8
13 changed files with 155 additions and 122 deletions

View File

@@ -23,15 +23,10 @@ const monacoEditorPlugin = isObjectWithDefaultFunction(monacoEditorPluginModule)
export default defineConfig({
plugins: [
vue({
script: {
propsDestructure: true,
defineModel: true
},
script: { propsDestructure: true, defineModel: true },
include: [/\.vue$/, /\.md$/],
template: {
compilerOptions: {
isCustomElement: (tag) => tag.startsWith('yt-')
}
compilerOptions: { isCustomElement: (tag) => tag.startsWith('yt-') }
}
}),
svgLoader(),
@@ -42,19 +37,11 @@ export default defineConfig({
caddyTls(),
monacoEditorPlugin({ languageWorkers: ['css'] })
],
server: {
port: 51000
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
},
define: {
'process.env': {},
global: 'window'
},
server: { port: 51000 },
resolve: { alias: { '@': path.resolve(__dirname, 'src') } },
define: { 'process.env': {}, global: 'window' },
optimizeDeps: {
include: ['@vicons/fluent', '@vicons/ionicons5', 'vue', 'vue-router']
}
},
build: { sourcemap: true }
})