Skip to content

Commit

Permalink
fix: dist support live.html page
Browse files Browse the repository at this point in the history
  • Loading branch information
halwu(吴浩麟) committed May 30, 2017
1 parent 2c9f10f commit 2576e49
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion webpack-dist.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = {
},
entry: {
doc: './doc/index.js',
live: './doc/live/index',
},
plugins: [
new DefinePlugin({
Expand All @@ -70,7 +71,13 @@ module.exports = {
}),
new WebPlugin({
template: './doc/template.html',
filename: 'index.html'
filename: 'index.html',
requires: ['doc'],
}),
new WebPlugin({
template: './doc/template.html',
filename: 'live.html',
requires: ['live'],
}),
new EndWebpackPlugin(() => {
ghpages.publish(outputPath, { dotfiles: true }, (err) => {
Expand Down

0 comments on commit 2576e49

Please sign in to comment.