fix: loading
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user