Alias Pack
Configure Webpack module aliases.
Overview
Setup
Alias Pack
is included in the complete
and default
editions.
Current Release
npm install --save-dev @packmule/alias-pack
Nightly Build
npm install --save-dev @packmule/alias-pack@nightly
API
AliasPack(name: string, target: string)
Usage
Example
Set an alias for a directory.
import Packmule from '@packmule/core';
import AliasPack from '@packmule/alias-pack';
const packmule = new Packmule();
packmule.add(new AliasPack('Utility', 'src/common/utility/'));
return packmule.generate();