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 = moduleexports = plugins: 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