Skip to content

Commit

Permalink
chore: Modify website error. #17
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 13, 2020
1 parent 4f6746a commit d004230
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .kktrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ export default (conf, opts, webpack) => {
if (item.oneOf) {
item.oneOf.unshift({
test: /\.md$/,
use: require.resolve('raw-loader'),
use: [
{
loader: require.resolve('raw-loader'),
options: {
esModule: true,
},
},
],
});
}
return item;
Expand All @@ -27,14 +34,6 @@ export default (conf, opts, webpack) => {
VERSION: JSON.stringify(pkg.version),
})
);
// 解析 Markdown 文件
conf.module.rules = [
...conf.module.rules,
{
test: /\.md$/,
loader: 'raw-loader',
},
];
conf.output = { ...conf.output, publicPath: './' }
return conf;
}

0 comments on commit d004230

Please sign in to comment.