universal-action-creator-loader

    0.5.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

    Install

    npm i universal-action-creator-loader

    DownloadsWeekly Downloads

    18

    Version

    0.5.1

    License

    MIT

    Last publish

    Collaborators

    • andy-shea