6.0.0-beta.2 • Published 5 years ago

@pixeloven/webpack-compiler v6.0.0-beta.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@pixeloven/webpack-compiler

Pixel Oven webpack-compiler.

See our website pixeloven-webpack-compiler for more information or the issues associated with this package.

Install

Using npm:

npm install --save @pixeloven/webpack-compiler

or using yarn:

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.
// 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.

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

Compiler.create(configs);
6.0.0-beta.2

5 years ago

6.0.0-beta.0

5 years ago

6.0.0-alpha.23

5 years ago

6.0.0-alpha.22

5 years ago

6.0.0-alpha.19

5 years ago

6.0.0-alpha.17

5 years ago

6.0.0-alpha.16

5 years ago

6.0.0-alpha.15

5 years ago

6.0.0-alpha.8

5 years ago

6.0.0-alpha.7

5 years ago

6.0.0-alpha.6

5 years ago

6.0.0-alpha.5

5 years ago

6.0.0-alpha.2

5 years ago

6.0.0-alpha.0

5 years ago

5.3.2

5 years ago

5.3.0

5 years ago

5.2.0

5 years ago

5.0.0

5 years ago

5.0.0-beta.1

5 years ago

5.0.0-alpha.8

5 years ago

5.0.0-alpha.4

5 years ago

5.0.0-alpha.1

5 years ago

5.0.0-alpha.0

5 years ago