Browse Source

Merge pull request #928 from tommedema/no-duplicate-dev-js

prevent grapes.js from being injected twice during development
pull/934/merge
Artur Arseniev 9 years ago
committed by GitHub
parent
commit
a724b66982
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      webpack.config.js

2
webpack.config.js

@ -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({

Loading…
Cancel
Save