webpack-serve-spa-plugin
v1.1.2
Published
Wraps koa-connect, compression and connect-history-api-fallback for spa-ifying webpack-serve
Downloads
3
Readme
Webpack Serve Spa Plugin
Wrapper which adds compression and connect-history-api-fallback to webpack-serve.
Usage
import and use with add
method.
const spaPlugin = require("webpack-serve-spa-plugin");
module.exports.serve = {
add: (app) => spaPlugin(app),
...
}