https://github.com/jcoreio/redux-features-hot-loader
webpack hot loader for redux-features
https://github.com/jcoreio/redux-features-hot-loader
Last synced: 10 months ago
JSON representation
webpack hot loader for redux-features
- Host: GitHub
- URL: https://github.com/jcoreio/redux-features-hot-loader
- Owner: jcoreio
- License: mit
- Created: 2016-12-19T00:33:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T14:30:57.000Z (over 3 years ago)
- Last Synced: 2024-04-14T13:07:30.606Z (about 2 years ago)
- Language: JavaScript
- Size: 1.4 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# redux-features-hot-loader
[](https://travis-ci.org/jcoreio/redux-features-hot-loader)
[](https://coveralls.io/github/jcoreio/redux-features-hot-loader?branch=master)
[](https://github.com/semantic-release/semantic-release)
[](http://commitizen.github.io/cz-cli/)
Webpack hot reloading for [redux-features](https://github.com/jcoreio/redux-features)
## Usage
```
npm install --save-dev redux-features-hot-loader
```
### Inline
```js
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`:
```js
{
test: /Feature\.js$/,
loader: 'redux-features-hot-loader',
},
```