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

Set up hot loader #15

Open
heron2014 opened this issue Feb 3, 2016 · 1 comment
Open

Set up hot loader #15

heron2014 opened this issue Feb 3, 2016 · 1 comment
Milestone

Comments

@heron2014
Copy link
Member

As a developer I want to preserve state of my project when making changes

Official reference hot loader
Jrans reference repo here

@heron2014 heron2014 added this to the Sprint 1 milestone Feb 3, 2016
@heron2014
Copy link
Member Author

Steps to set up Hot Loader:

  • npm install react-hot-loader --save-dev
  • in your webpack.config.json
    entry :['webpack-dev/server/client?http://0.0.0.0,3003',
    'webpack/hot/only-dev-server',
    '.views/app.js'],

...
module:
...

loader: ['react-hot', 'babel']
add: plugins: [
new webpack.Hot...()]

  • install webpack-dev-server

When we run it now , we will have an issue with multiple loaders - we need to split our loaders so query with preset to react will only require babel

Not finished

Good tutorial: http://teropa.info/blog/2015/09/10/full-stack-redux-tutorial.html#react-and-react-hot-loader

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