Skip to content

Commit

Permalink
fix: live reload losing in memory key
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed May 24, 2023
1 parent baa3c4a commit 0803ce6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions webpack/dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const excludeEntriesFromHotModuleReload = ['content-script', 'inpage'];
Object.keys(config.entry).forEach(entryName => {
if (!excludeEntriesFromHotModuleReload.includes(entryName) && config.entry) {
config.entry[entryName] = [
`webpack-dev-server/client?hot=true&live-reload=true&hostname=${HOST}&port=${PORT}`,
`webpack-dev-server/client?hot=true&live-reload=true&logging=none&hostname=${HOST}&port=${PORT}`,
'webpack/hot/dev-server',
].concat(config.entry[entryName]);
}
Expand All @@ -37,10 +37,7 @@ const server = new WebpackDevServer(
// Disabled as web configure manually above
hot: false,
// We disable client bc we do a manual setup for specific entries
client: {
overlay: false,
logging: 'none',
},
client: false,
port: process.env.PORT,
static: {
directory: path.join(__dirname, '../build'),
Expand Down

0 comments on commit 0803ce6

Please sign in to comment.