Rollup plugin to server the bundle
thgh/rollup-plugin-serve
forked fromInstallation
npm install --save-dev rollup-plugin-server
Usage
// rollup.config.js entry: 'entry.js' dest: 'bundle.js' plugins: // ssl: true, // optional
Options
By default it serves the current project folder. Change it by passing a string:
// will be used as contentBase // Default options
Test
HTTP
$ cd ./test
$ ../node_modules/.bin/rollup -c rollup.config.js
Browser access : http://localhost:10001, http://localhost:10001/base1, http://localhost:10001/base2
HTTPS
$ cd ./test
$ ../node_modules/.bin/rollup -c rollup.config.ssh.js
Browser access : https://localhost:10001, https://localhost:10001/base1, https://localhost:10001/base2
Contributing
Contributions and feedback are very welcome.
To get it running:
- Clone the project.
npm install
npm run build
Credits
- Kei Funagayama
- Fork source : Thomas Ghysels
- All Contributors
License
The MIT License (MIT). Please see License File for more information.