Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i use hotReload #17

Closed
jybaek opened this issue Apr 16, 2018 · 1 comment
Closed

how can i use hotReload #17

jybaek opened this issue Apr 16, 2018 · 1 comment

Comments

@jybaek
Copy link

jybaek commented Apr 16, 2018

$ npm run dev

Can i use hotReload ? I thought I could fix the hotMiddleware in the dev-server.js (hot: true)

var hotMiddleware = require('webpack-hot-middleware')(compiler, {
  hot: true, // not working
  log: false,
  heartbeat: 2000
})

plz help me. thanks

@jybaek
Copy link
Author

jybaek commented Apr 17, 2018

sorry, in my mistake, it's working find. thanks.

var devMiddleware = require('webpack-dev-middleware')(compiler, {
  publicPath: webpackConfig.output.publicPath,
  hot: true,
  watchOptions: {
    aggregateTimeout: 300,
    poll: true
  },
  quiet: true
})

@jybaek jybaek closed this as completed Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant