roe-plugin-resolve-alias

2.0.0 • Public • Published

Build Status Coverage

roe-plugin-resolve-alias

Roe plugin to define module resolving aliases for both server side and client side

Install

$ npm i roe-plugin-resolve-alias

Usage

roe.config.js

const AliasPlugin = require('roe-plugin-resolve-alias')
 
module.exports = {
  plugins: [
    new AliasPlugin({
      fetch: {
        server: 'node-fetch',
        client: 'fetch-ponyfill'
      }
    })
  ],
  ...
}

The code above will set webpack.output.resolve.alias.fetch as

  • 'node-fetch' in server side
  • and 'fetch-ponyfill' in client side

License

MIT

Package Sidebar

Install

npm i roe-plugin-resolve-alias

Weekly Downloads

4

Version

2.0.0

License

MIT

Unpacked Size

5.59 kB

Total Files

6

Last publish

Collaborators

  • kael