redux-features-hot-loader
v1.0.3
Published
webpack hot loader for redux-features
Downloads
1,199
Maintainers
Readme
redux-features-hot-loader
Webpack hot reloading for redux-features
Usage
npm install --save-dev redux-features-hot-loader
Inline
import {addFeature} from 'redux-features'
import store from './store'
import myFeature from 'redux-features-hot-loader!./myFeature'
store.dispatch(addFeature('myFeature', myFeature))
Webpack loader (Webpack 1)
This should come before your main \.js$
loader.
For instance to apply this to all files ending in Feature.js
:
{
test: /Feature\.js$/,
loader: 'redux-features-hot-loader',
},