surge-spa-webpack-plugin

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i surge-spa-webpack-plugin

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.2 kB

Total Files

3

Last publish

Collaborators

  • tygrinn