-
I cannot get hot reload module to work anymore. It worked for a while, but now I am getting an error in firefox and similar in chrome: // change webpack default config
const defaultConfig = require( '@wordpress/scripts/config/webpack.config.js' );
if ( process.env.NODE_ENV !== 'production' ) {
defaultConfig.devServer.server = {
type: 'https',
options: {
cert: 'C:/Wamp.NET/bin/8-apache_2.4.51_x64/conf/vhosts/local.crt',
key: 'C:/Wamp.NET/bin/8-apache_2.4.51_x64/conf/vhosts/local.key'
}
};
defaultConfig.devServer.allowedHosts = ['local', 'localhost', '127.0.0.1'];
defaultConfig.devServer.host = 'local';
}
module.exports = defaultConfig; Can anyone try hot reloading to see if it is an general issue, or just not working for me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Note: Hot reloading is invoked with |
Beta Was this translation helpful? Give feedback.
-
I found solution, I had developer extension "Live reload" which, when enabled, interfered with HMR. Now everything is fine. Sometimes manunal browser refreshement is needed. |
Beta Was this translation helpful? Give feedback.
I found solution, I had developer extension "Live reload" which, when enabled, interfered with HMR. Now everything is fine. Sometimes manunal browser refreshement is needed.