roe-plugin-resolve-alias
v2.0.0
Published
Roe plugin to define module resolving aliases for both server side and client side
Downloads
8
Maintainers
Readme
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