Skip to content

Commit

Permalink
修改配置
Browse files Browse the repository at this point in the history
  • Loading branch information
lilinsen committed Jan 25, 2019
1 parent 0a08951 commit ddb5995
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
7 changes: 4 additions & 3 deletions build/webpack.doc.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ module.exports = merge(webpackBaseConf, {
output:'./sites/doc/view/',
template:'./doc-site/template.html',
nav:'left',
needCode:true
needCode:true,
isbuild:isDev
}),
new mdtohtml({
entry:'./docs',
output:'./sites/doc/page/',
template:'./doc-site/template.html',
nav:'left',
needCode:false

needCode:false,
isbuild:isDev
}),
new HtmlWebpackPlugin({
template: './sites/doc/index.html',
Expand Down
3 changes: 2 additions & 1 deletion build/webpack.doc.build.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ module.exports = merge(baseConf, {
new OptimizeCSSAssetsPlugin({})
]
},
});
});

8 changes: 6 additions & 2 deletions scripts/mdToVue.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,19 @@ function MdToHtml(commomOption) {
let params = {
entry:'',
output:'',
needCode:true
needCode:true,
isbuild:true
}
params = Object.assign(params,commomOption);
//检查输出路径
ishasOutFile(params.output,()=>{
//获取所有的md 转html的结果
fileDisplay(params);
//文件监听
filelisten(params);
if(params.isbuild){
filelisten(params);
}

});

}
Expand Down

0 comments on commit ddb5995

Please sign in to comment.