aspnet-webpack auto-loads 'event-source-polyfill' on client when HMR is enabled. This requires 'event-source-polyfill' to be included in the client-side bundle, so it's also now added to all the templates' vendor bundles. Fixes #365.

This commit is contained in:
SteveSandersonMS
2016-10-10 12:24:07 +01:00
parent 93779a5e46
commit 3568476cca
11 changed files with 36 additions and 9 deletions

View File

@@ -4,6 +4,7 @@
"devDependencies": {
"bootstrap": "^3.3.6",
"css-loader": "^0.23.1",
"event-source-polyfill": "^0.0.7",
"extendify": "^1.0.0",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.8.5",

View File

@@ -15,7 +15,7 @@ module.exports = {
]
},
entry: {
vendor: ['bootstrap', 'bootstrap/dist/css/bootstrap.css', 'style-loader', 'jquery']
vendor: ['bootstrap', 'bootstrap/dist/css/bootstrap.css', 'event-source-polyfill', 'style-loader', 'jquery']
},
output: {
path: path.join(__dirname, 'wwwroot', 'dist'),