Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1 KB

README.md

File metadata and controls

27 lines (19 loc) · 1 KB

Universal Action Creator Loader

Build Status Code Coverage

A Webpack loader to strip server side code from action creators in a client build. For use with universal action creators defined using the redux-action-creator helper.

Install

yarn add universal-action-creator-loader --dev

Usage

In your client webpack build, add the loader for your action files. In this example we assume the action creators are defined in files called action.js:

module: {
  loaders: [
    {test: /actions\.js$/, loader: require.resolve('universal-action-creator-loader')}
  ]
}

Licence

MIT