Package Exports
- rollup-plugin-serve
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-serve) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Rollup plugin to serve the bundle
Installation
npm install --save-dev rollup-plugin-serveUsage
// rollup.config.js
import serve from 'rollup-plugin-serve'
export default {
entry: 'entry.js',
dest: 'bundle.js',
plugins: [
serve({
// Where to serve files from
contentBase: 'dist/',
// Return index.html instead of 404
historyApiFallback: false
})
]
}Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Contributions and feedback are very welcome.
To get it running:
- Clone the project.
npm installnpm run build
Credits
License
The MIT License (MIT). Please see License File for more information.