# @pixeloven-webpack/compiler

> Wrapper class for webpack compiler

Latest version **7.0.0-alpha.0** (published 2021-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pixeloven-webpack/compiler
pnpm add @pixeloven-webpack/compiler
yarn add @pixeloven-webpack/compiler
bun add @pixeloven-webpack/compiler
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 7.0.0-alpha.0 |
| Published | 2021-03-11 |
| First published | 2019-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 162.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Brian Gebel |
| Maintainers | briangeb |

## Links

- npm: https://www.npmjs.com/package/@pixeloven-webpack/compiler
- Repository: https://github.com/pixeloven/pixeloven
- Homepage: https://www.pixeloven.com
- Issues: https://github.com/pixeloven/pixeloven/issues
- npm.io page: https://npm.io/package/@pixeloven-webpack/compiler

## Dependencies (4)

- [webpack](https://npm.io/package/webpack.md) 4.41.5
- [@pixeloven-core/env](https://npm.io/package/@pixeloven-core/env.md) ^6.4.0
- [@pixeloven-core/common](https://npm.io/package/@pixeloven-core/common.md) ^6.4.0
- [@pixeloven-webpack/config](https://npm.io/package/@pixeloven-webpack/config.md) ^7.0.0-alpha.0

## Recent versions

- 7.0.0-alpha.0 (latest) — 2021-03-11
- 6.4.1 — 2021-01-30
- 6.4.0 — 2021-01-29
- 6.3.1 — 2020-11-18
- 6.3.0 — 2020-11-13
- 6.2.0 — 2020-10-21
- 6.1.0 — 2020-10-08
- 6.0.1 — 2020-06-02
- 6.0.0 — 2020-06-02
- 6.0.0-rc.28 — 2020-06-02
- 6.0.0-rc.27 — 2020-05-28
- 6.0.0-rc.26 — 2020-05-28
- 6.0.0-rc.24 — 2020-05-22
- 6.0.0-rc.17 — 2020-04-09
- 6.0.0-rc.16 — 2020-04-09
- … 27 more at https://npm.io/package/@pixeloven-webpack/compiler/versions

## README

# @pixeloven-webpack/compiler

> Pixel Oven webpack-compiler.

See our website [PixelOven](https://www.pixeloven.com/) for more information or our [issues](https://github.com/pixeloven/pixeloven/issues) board to report issues associated with this package.

## Install

Using npm:

```sh
npm install --save @pixeloven-webpack/compiler
```

or using yarn:

```sh
yarn add @pixeloven-webpack/compiler
```

## Usage

> Note it's required that we provide a "client" and "server" configuration as an array to webpack.

The primary function of this module is to act as a wrapper class for webpack's compiler. Additionally it Provides functionality useful for interfacing with webpack's compiler and it's corresponding configuration and output.

1. `create` - This static method will return us a new Compiler instance based on our desired configuration.

```javascript
// webpack.config.js

export default [
    {
        name: 'client',
        target: 'web',
        entry: './client.js'
        ...
    }, {
        name: 'server',
        target: 'node',
        entry: './server.js'
        ...
    }
];
```

We can take this configuration and compile it like shown below.

```javascript
import { Compiler } from "@pixeloven-webpack/compiler";
import configs from "./webpack.config.js";

Compiler.create(configs);
```

---
_Source: https://npm.io/package/@pixeloven-webpack/compiler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
