poly-next-core

0.0.4 • Public • Published

poly-next-core

core libraries for poly-next cli and middleware

CLI

See: https://github.com/jrmerz/poly-next

Or: https://www.npmjs.com/package/poly-next

Config

See: https://github.com/jrmerz/poly-next#config

Middleware

npm install --save poly-next-core
var polyNextCore = require('poly-next-core');
var express = require('express');
var app = express();

var config = {
    // see above
}

app.use(polyNextCore.middleware(config));
app.use(express.static(config.root));

app.listen(config.port);

Polyfills

While servePolyfill=true, the webcomponent polyfills will be served from:

  • /webcomponentsjs/full.js
  • /webcomponentsjs/lite.js
  • /webcomponentsjs/micro.js

Package Sidebar

Install

npm i poly-next-core

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • jrmerz