UNPKG

@zkochan/pnpm

Version:

A fast implementation of npm install

30 lines (25 loc) 648 B
/** * Copyright 2015 Google Inc. All Rights Reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://github.com/firebase/superstatic/blob/master/LICENSE */ 'use strict'; var superstatic = require('../../'); var connect = require('connect'); var spec = { config: { public: './app', rewrites: [{ source: '**', destination: '/index.html' }] }, cwd: process.cwd() }; var app = connect() .use(superstatic(spec)); app.listen(3474, function(err) { if (err) { console.log(err); } console.log('Superstatic now serving on port 3474 ...'); });