Skip to content

Commit d004230

Browse files
committed
chore: Modify website error. #17
1 parent 4f6746a commit d004230

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.kktrc.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@ export default (conf, opts, webpack) => {
1515
if (item.oneOf) {
1616
item.oneOf.unshift({
1717
test: /\.md$/,
18-
use: require.resolve('raw-loader'),
18+
use: [
19+
{
20+
loader: require.resolve('raw-loader'),
21+
options: {
22+
esModule: true,
23+
},
24+
},
25+
],
1926
});
2027
}
2128
return item;
@@ -27,14 +34,6 @@ export default (conf, opts, webpack) => {
2734
VERSION: JSON.stringify(pkg.version),
2835
})
2936
);
30-
// 解析 Markdown 文件
31-
conf.module.rules = [
32-
...conf.module.rules,
33-
{
34-
test: /\.md$/,
35-
loader: 'raw-loader',
36-
},
37-
];
3837
conf.output = { ...conf.output, publicPath: './' }
3938
return conf;
4039
}

0 commit comments

Comments
 (0)