universal-action-creator-loader

6.1.1 • Public • Published

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

/universal-action-creator-loader/

    Package Sidebar

    Install

    npm i universal-action-creator-loader

    Weekly Downloads

    4

    Version

    6.1.1

    License

    MIT

    Unpacked Size

    12 kB

    Total Files

    19

    Last publish

    Collaborators

    • andy-shea