Packmule pack to generate a webmanifest file.


Keywords
webpack, packmule, packmule-pack, bundler, configuration, generator
License
MIT
Install
npm install @packmule/manifest-pack@2.0.1-nightly.424

Documentation

packmule

packmule is an opinionated, plugin-based configuration generator for webpack.


  • 🏇 Small and simple API.
  • 🧰 Plugins for many use cases.
  • 🔧 Build your own plugin for custom use cases.
  • Optimized webpack settings for HTTP/2.
import Packmule from '@packmule/core';
import EntryPack from '@packmule/entry-pack';
import OutputPack from '@packmule/output-pack';
import TypeScriptPack from '@packmule/typescript-pack';

const packmule = new Packmule('production');

packmule.add(new EntryPack('main.ts'));
packmule.add(new OutputPack('public/', '/'));
packmule.add(new TypeScriptPack());

return packmule.generate();

Setup

Current Release

Run the following command within your project directory to install the default edition of packmule which includes the @packmule/core package and most relevant packs.

npm install --save-dev @packmule/default

The complete edition can be installed to have all packs available.

npm install --save-dev @packmule/complete

Alternatively, to have full control over the installed packages, it's possible to install the core package and individual packs.

npm install --save-dev @packmule/core @packmule/entry-pack @packmule/output-pack @packmule/typescript-pack

Nightly Build

All @packmule packages have a nightly build tagged on the npm registry.

npm install --save-dev @packmule/<package>@nightly

Editions

packmule provides editions which install a pre-defined set of packmule packages including various packs and utilities.

It's recommended to install packmule packages individually but editions provide an easy way to get started quickly.

Plugins

packmule plugins are called packs and each one handles generation of a specific webpack configuration part. Several packs expose API methods to include or exclude files from processing using file globbing or regular expression patterns.

Utilities

License

MIT license