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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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({ |
|
|
|
|