Skip to content

Commit

Permalink
prevent grapes.js from being injected twice during development
Browse files Browse the repository at this point in the history
  • Loading branch information
tommedema committed Mar 6, 2018
1 parent 49100b2 commit cc029b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = env => {
const index = 'index.html';
const indexDev = `_${index}`;
const template = fs.existsSync(indexDev) ? indexDev : index;
plugins.push(new HtmlWebpackPlugin({ template }));
plugins.push(new HtmlWebpackPlugin({ template, inject: false }));
}

plugins.push(new webpack.ProvidePlugin({
Expand Down

0 comments on commit cc029b7

Please sign in to comment.