Update dependencies

This commit is contained in:
QWp6t
2017-03-23 20:33:09 -07:00
parent 6b40db80fd
commit 69c55e9abb
6 changed files with 206 additions and 187 deletions

View File

@@ -1,5 +1,3 @@
const qs = require('qs');
/**
* Loop through webpack entry
* and add the hot middleware
@@ -8,10 +6,7 @@ const qs = require('qs');
*/
module.exports = (entry) => {
const results = {};
const hotMiddlewareScript = `webpack-hot-middleware/client?${qs.stringify({
timeout: 20000,
reload: true,
})}`;
const hotMiddlewareScript = 'webpack-hot-middleware/client?timeout=20000&reload=true';
Object.keys(entry).forEach((name) => {
results[name] = Array.isArray(entry[name]) ? entry[name].slice(0) : [entry[name]];