autohost-webpack-hot
This is a very simple plugin for autohost to wire up webpack (and babel supported) hot-reloading.
Usage
Install
npm install autohost-webpack-hot --save
Integrate with Autohost
var autohost = ;var fount = ; var webpackConfig = ;var webpackCompiler = webpackConfig ; // Any settings to pass to webpack-dev-serverwebpackCompiler_middlewareConfig = stats: colors: true ; fount; var host = ; hoststart;
Follow the rest of the example from react-transform-boilerplate - This autohost plugin will just handle serving the files. The following two files are included for reference.
Tests
Single Run
npm test
Continuous Run with Coverage
gulp
Notes
- Be sure to setup the
.babelrc
correctly to reference the react transform plugins.
License
MIT