JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14102
  • Score
    100M100P100Q145951F
  • License MIT

Serve your rolled up bundle

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

Software License Issues JavaScript Style Guide NPM Latest Version

Installation

npm install --save-dev rollup-plugin-serve

Usage

// 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:

  1. Clone the project.
  2. npm install
  3. npm run build

Credits

License

The MIT License (MIT). Please see License File for more information.