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

Latest commit

 

History

History
42 lines (29 loc) · 1.4 KB

readme.md

File metadata and controls

42 lines (29 loc) · 1.4 KB

🏭 plugin-lib-rollup

npm linux windows coverage deps

Bundle files using Rollup.

Install

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

Usage

Signature

rollup(config: {})

config

Rollup configuration.

Example

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

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

  return sequence(
    env('NODE_ENV', 'production'),
    rollup(rollupConfig)
  )
}