Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Latest commit

 

History

History
54 lines (37 loc) · 1.58 KB

readme.md

File metadata and controls

54 lines (37 loc) · 1.58 KB

🏭 plugin-lib-webpack

npm linux windows coverage deps

Bundle files using Webpack.

Install

$ yarn add --dev @start/plugin-lib-webpack
# or
$ npm install --save-dev @start/plugin-lib-webpack

Usage

Signature

webpack(config: Configuration, statsOptions?: StatsOptions)

config

webpack configuration.

statsOptions

webpack stats options.

Default:

{
  colors: true
}

Example

import sequence from '@start/plugin-sequence'
import env from '@start/plugin-env'
import webpack from '@start/plugin-lib-webpack'

export const task = async () => {
  const { default: webpackConfig } = await import('./webpack.config')

  return sequence(
    env('NODE_ENV', 'production'),
    webpack(webpackConfig)
  )
}