webpack-module-hot-accept
Tiny webpack plugin that adds module.hot.accept
to the bottom of modules if module.hot
is not already present.
Installation
npm install webpack-module-hot-accept --save-dev
Usage
// webpack.config.js var webpack = ; moduleexports = entry: 'webpack/hot/only-dev-server' './entry.js' output: filename: 'bundle.js' plugins: module: loaders: test: /\.jsx?$/ exclude: /node_modules/ loaders: 'babel' 'webpack-module-hot-accept' // add this last ;