Webpacker: Hot Module Reload not working after upgrade to webpacker 3.0

Created on 31 Aug 2017  路  5Comments  路  Source: rails/webpacker

Hot Module Reload does not seem to be working correctly after upgrading to webpacker 3.0.
The page is receiving the HMR update and page content is changing but then a full refresh is also done.

Most helpful comment

Still seeing this, using webpack 3.0.1 and webpack 3.4.1

Tried @gauravtiwari fix, but no success either.

Any ideas?

All 5 comments

@krisrang Oh yes, seems like something we introduced with watchContentBase but apparently we seem to have manifest.json in there that will change and it will make the page refresh:

To fix now:

// config/webpack/development.js
const environment = require('./environment')
const config = environment.toWebpackConfig()
config.devServer.watchContentBase = false
module.exports = config

Merged the fix but Keeping this open for reference until we make a new tiny release

Released 3.0.1

Still seeing this, using webpack 3.0.1 and webpack 3.4.1

Tried @gauravtiwari fix, but no success either.

Any ideas?

I wrote a detailed explanation on how to use hot module reloading with Webpacker, that could help you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eriknygren picture eriknygren  路  3Comments

itay-grudev picture itay-grudev  路  3Comments

ijdickinson picture ijdickinson  路  3Comments

ilrock picture ilrock  路  3Comments

towry picture towry  路  3Comments