ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 8ea283a4e178a6106d8ba5f8a4f2df967ec472f0
parent 314a7bb5172c284bfa345c1cd9262a4588923a1d
Author: Konstantin Tarkus <koistya@gmail.com>
Date:   Wed,  6 Apr 2016 10:23:21 +0300

Merge pull request #547 from zwhitchcox/patch-3

clean config.entry
Diffstat:
Mtools/start.js | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/tools/start.js b/tools/start.js @@ -31,12 +31,7 @@ async function start() { // to enable Hot Module Replacement (HMR) and React Transform webpackConfig.filter(x => x.target !== 'node').forEach(config => { /* eslint-disable no-param-reassign */ - if (Array.isArray(config.entry)) { - config.entry.unshift('webpack-hot-middleware/client'); - } else { - config.entry = ['webpack-hot-middleware/client', config.entry]; - } - + config.entry = ['webpack-hot-middleware/client'].concat(config.entry); config.output.filename = config.output.filename.replace('[chunkhash]', '[hash]'); config.output.chunkFilename = config.output.chunkFilename.replace('[chunkhash]', '[hash]'); config.plugins.push(new webpack.HotModuleReplacementPlugin());