poly-next-core
v0.0.4
Published
core libraries for poly-next cli and middleware
Downloads
4
Maintainers
Readme
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