tj / frontend-boilerplate

webpack-react-redux-babel-autoprefixer-hmr-postcss-css-modules-rucksack-boilerplate (unmaintained, I don't use it anymore)
2.93k stars 268 forks source link

Use babel-preset-react-hmre #17

Closed SeeThruHead closed 8 years ago

SeeThruHead commented 8 years ago

YMMV but I've found this setup to be much nicer to work with. Reference: https://github.com/gaearon/react-transform-boilerplate

tj commented 8 years ago

hmm I don't plan on using Node for the server portion, does it add anything beyond that? I kind of like not having the server right in the repo for this case

SeeThruHead commented 8 years ago

The devserver file is only taking the place of webpack-dev-server. This is to be able to use this wonderful project: https://github.com/webpack/webpack-dev-middleware

Errors will now appear directly in the browser frame React errors will also be caught and displayed in a similar manner by react-transform-catch-errors The pr also uses react-transform-hmr over react-hot-loader (which is stable but deprecated)

Via gaeron/react-transform-boilerplate

tj commented 8 years ago

errors thing looks decent but I always have the console open anyway, for now I like the webpack dev server thing since it doesn't anymore code. I'll come back to this if it makes sense later!