Skip to content

Instantly share code, notes, and snippets.

View mkalish's full-sized avatar

Michael Kalish mkalish

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mkalish on github.
  • I am mqkalish (https://keybase.io/mqkalish) on keybase.
  • I have a public key ASBJbuJtA_DT-kJ9nOgyINNoOwhXq2VQBekCxRRBD5hlqwo

To claim this, I am signing this object:

@mkalish
mkalish / Hot Reload Webpack 2
Created March 2, 2017 19:44
This configuration will not trigger a refresh when the hot update is applied.
module.exports = {
entry: {
hot: ['react-hot-loader/patch', 'webpack-dev-server/client?https://localhost:3000', 'webpack/hot/only-dev-server'],
main: 'src/index.js'
},
output: {
path: __dirname + '/dist/assets',
filename: '[hash]-[name].js',
library: 'ReactApp'
},