Skip to content

dschulten/cypress-rollup-preprocessor

Repository files navigation

Cypress Rollup Preprocessor

Cypress preprocessor for bundling JavaScript via rollup

Installation

Requires Node version 6.5.0 or above.

npm install --save-dev @cypress/rollup-preprocessor

Usage

In your project's plugins file:

const rollup = require('@cypress/rollup-preprocessor')

module.exports = (on) => {
  on('file:preprocessor', rollup())
}

Options

Pass in options as the second argument to rollup:

const rollup = require('@cypress/rollup-preprocessor')
module.exports = (on) => {
  config: require('../../rollup.config.js')
  on('file:preprocessor', rollup(config))
}

Contributing

Run all tests once:

npm test

Run tests in watch mode:

npm run test-watch

License

This project is licensed under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

4 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors