0.0.4 • Published 8 years ago

poly-next-core v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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