Rollup plugin to serve the bundle
Installation
# Rollup v0.60+ and v1+
npm install --save-dev rollup-plugin-serve-proxy
Authorship
This package is a fork of Thomas Ghysels' excellent rollup-plugin-serve
. This fork also includes code needed to route calls to a separate CORS-enabled backend.
Usage
// rollup.config.js input: 'src/main.js' output: file: 'dist/bundle.js' format: ... plugins:
Options
By default it serves the current project folder. Change it by passing a string:
// will be used as contentBase // Default options
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Contributions and feedback are very welcome.
This project aims to stay lean and close to standards. New features should encourage to stick to standards. Options that match the behaviour of webpack-dev-server are always ok.
To get it running:
- Clone the project.
npm install
npm run build
Credits
License
The MIT License (MIT). Please see License File for more information.