Rollup plugin to serve the bundle
# Rollup v0.60+ and v1+ npm install --save-dev rollup-plugin-serve-proxy
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.
// rollup.config.jsinput: 'src/main.js'output:file: 'dist/bundle.js'format: ...plugins:
By default it serves the current project folder. Change it by passing a string:
// will be used as contentBase// Default options
Please see CHANGELOG for more information what has changed recently.
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 run build
The MIT License (MIT). Please see License File for more information.