Skip to content

Commit

Permalink
Generating html page for all builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Walter committed May 25, 2018
1 parent 281acd4 commit a0ba501
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ module.exports = {
},
plugins: [
new VueLoaderPlugin(),
...(process.env.WEBPACK_SERVE ? [
new HtmlWebpackPlugin({ template: './src/index.html' })
] : [
new HtmlWebpackPlugin({ template: './src/index.html' }),
...(process.env.WEBPACK_SERVE ? [] : [
new CleanWebpackPlugin(['dist'])
])
]
Expand Down

0 comments on commit a0ba501

Please sign in to comment.