@phylum/webpack
TypeScript icon, indicating that this package has built-in type declarations

4.0.3 • Public • Published

PhlumJS + Webpack

Build Status Coverage Status Latest License

Installation

npm i @phylum/webpack webpack

Usage

import { Task } from '@phylum/pipeline';
import { WebpackTask } from '@phylum/webpack';

const config = Task.value({
	// ...webpack config...
});

const bundle = new WebpackTask(config);

Output

The task will output stats from the latest compilation
and will only reject in case of critical errors.

new Task(async t => {
	const stats = await t.use(bundle);
	const data = stats.toJson();
	for (const msg of data.warnings) {
		console.warn(msg);
	}
	for (const msg of data.errors) {
		console.error(msg);
	}
});

Readme

Keywords

none

Package Sidebar

Install

npm i @phylum/webpack

Weekly Downloads

10

Version

4.0.3

License

MIT

Unpacked Size

7.62 kB

Total Files

8

Last publish

Collaborators

  • mpt