Skip to content

Commit

Permalink
Configure dev server for HMR
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Richard committed Aug 12, 2024
1 parent 37ff889 commit 41a4af4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,24 @@
* limitations under the License.
*/

const { merge } = require('webpack-merge');
const {merge} = require('webpack-merge');
const common = require('./webpack.common.js');

module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
output: {
publicPath: ''
publicPath: '',
},
devServer: {
port: 4321,
allowedHosts: 'all',
client: {
webSocketURL: {
protocol: 'ws',
hostname: 'localhost',
port: 4321,
},
},
},
});

0 comments on commit 41a4af4

Please sign in to comment.