html-webpack-routes-plugin

v0.1.2
Clone routes for HTML Webpack Plugin
webpack plugin routes spa html-webpack-plugin html-webpack-routes-plugin s3 single page app

Routes for HTML Webpack Plugin

CircleCI Status GitHub license

Extends HTML Webpack Plugin to add support for cloning routes and prerendering them.

Note: prerender functionality is still a WIP, may not work as expected

Installation

yarn add html-webpack-routes-plugin -D

or

npm add html-webpack-routes-plugin --save-dev

Usage

Require the plugin in your webpack config:

const HtmlWebpackRoutesPlugin = require('html-webpack-routes-plugin');

Add the plugin to your webpack config as follows:

plugins: [
  new HtmlWebpackPlugin(),
  new HtmlWebpackRoutesPlugin([
    '/page1',
    '/page2'
  ])
]

Settings

Name Type Default Description

TODO

Examples

TODO

Other Examples

See a few other working examples here: https://github.com/colbyfayock/html-webpack-routes-plugin/tree/master/examples

Metadata

  • MIT
  • Whatever
  • Colby Fayock
  • released 10/27/2018

Downloads

Maintainers