poi-preset-resolve-alias
Use your custom resolve alias in Poi.
Why?
Poi provides @
as alias to the path to src
folder.
But if you want the alias to the folder outside src
folder, use this.
Installation
Requirement: You need to install Poi first.
Via NPM:
npm install --save-dev poi-preset-resolve-alias
Via Yarn:
yarn add --dev poi-preset-resolve-alias
Usage
Add this preset into your poi.config.js
config file.
module.exports = {
presets: [
require('poi-preset-resolve-alias')({
'<my first alias>': '<my first resolve path>',
'<my other alias>': '<my other resolve path>',
})
]
};