fix: loading

This commit is contained in:
2026-02-26 14:40:02 +08:00
parent e262a83aac
commit 5746249a47
2 changed files with 24 additions and 16 deletions
+7
View File
@@ -16,6 +16,13 @@ export default defineConfig({
plugins: [tailwindcss()],
},
},
bundlerChain: (chain) => {
// 为 .md 文件配置 raw-loader,支持 webpackContext 加载
chain.module
.rule('md-raw')
.test(/\.md$/)
.type('asset/source');
},
},
html: {
template: './src/index.html',