Skip to content

andy-shea/universal-action-creator-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Webpack loader to strip server side code from action creators in a client build

Resources

License

Stars

Watchers

Forks

Packages

No packages published