poi-plugin-resolve-alias

3.0.0 • Public • Published

poi-plugin-resolve-alias

license npm npm Travis

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-plugin-resolve-alias

Via Yarn:

yarn add --dev poi-plugin-resolve-alias

Usage

Add this preset into your poi.config.js config file.

const aliases = {
    '<my first alias>': '<my first resolve path>',
    '<my other alias>': '<my other resolve path>'
};
 
module.exports = {
    plugins: [
        {
            resolve: 'poi-plugin-resolve-alias',
            options: aliases
        }
    ]
};

Package Sidebar

Install

npm i poi-plugin-resolve-alias

Weekly Downloads

39

Version

3.0.0

License

MIT

Unpacked Size

5.87 kB

Total Files

11

Last publish

Collaborators

  • illuminator