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

Latest commit

 

History

History

plugin-lib-rollup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

🏭 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)
  )
}