Output Pack
Define the output options for
webpack
.
Overview
Setup
Output Pack
is included in the complete
and default
editions.
Current Release
npm install --save-dev @packmule/output-pack
Nightly Build
npm install --save-dev @packmule/output-pack@nightly
API
OutputPack(path: string, web: string = '/')
Options
- root - Used to build an absolute path of the configured output path.
Hints
- hash - Configures whether file name hashing is enabled or not.
Usage
Example
Configure the output options for the bundle.
import Packmule from '@packmule/core';
import OutputPack from '@packmule/output-pack';
const packmule = new Packmule();
packmule.add(new OutputPack('public/', '/'));
return packmule.generate();