JSPM

  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q75528F
  • License MIT

Dev Server for Pundle

Package Exports

  • pundle-dev
  • pundle-dev/package.json

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 (pundle-dev) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Pundle-Dev

Dev Server for Pundle. Provides a nice API to start express server with HMR support.

Installation

npm install --save pundle-dev

Usage

import PundleDev from 'pundle-dev'

const pundle = new PundleDev({
  pundle: pundleConfig,
  watcher: {
    onError(error) {
      console.error(error)
    }
  },
  middleware: {
    sourceMap: true,
    sourceRoot: config.rootDirectory,
    publicPath: '/',
    publicBundlePath: '/_/bundle.js'
  },
  server: {
    port: config.web_server_port
  }
})

pundle.listen()

License

This project is licensed under the terms of MIT License. See the LICENSE file at the root of the Github repo for more info.