mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: API access key management #2846 feat: Render markdown file with remark-loader #2846 ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
This commit is contained in:
@ -25,6 +25,9 @@ export default defineConfig({
|
||||
hack: `true; @import "~@/less/index.less";`,
|
||||
},
|
||||
},
|
||||
mdx: {
|
||||
loader: 'remark-loader',
|
||||
},
|
||||
devtool: 'source-map',
|
||||
copy: ['src/conf.json'],
|
||||
proxy: {
|
||||
@ -36,4 +39,16 @@ export default defineConfig({
|
||||
// pathRewrite: { '^/v1': '/v1' },
|
||||
},
|
||||
},
|
||||
chainWebpack(memo, args) {
|
||||
memo.module
|
||||
.rule('markdown')
|
||||
.test(/\.md$/)
|
||||
.use('html-loader')
|
||||
.loader('html-loader')
|
||||
.end()
|
||||
.use('remark-loader')
|
||||
.loader('remark-loader');
|
||||
|
||||
return memo;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user