1.0.1 • Published 5 years ago

surge-spa-webpack-plugin v1.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

Build Status

Surge SPA Webpack Plugin

This plugin creates a copy of the index.html file and calls it 200.html.

Surge redirects all requests to this file if no other file in the dist directory match the request.

Installation

yarn add --dev surge-spa-webpack-plugin
npm install --save-dev surge-spa-webpack-plugin

Usage

const SurgeSPAWebpackPlugin = require('surge-spa-webpack-plugin')

module.exports = {
  ...
  plugins: [
    new SurgeSPAWebpackPlugin()
  ]
}

Tests

yarn test