1.0.1 • Published 4 years ago

ghpages-spa-webpack-plugin v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

ghpages-spa-webpack-plugin

Github pages SPA webpack plugin

npm-version Build Status devDependencies Status

This plugin was inspired by lozinsky/cname-webpack-plugin.

Besides the CNAME file, it will also generate a 404.html that will redirect all requests to your SPA router.

Installation

npm install --save-dev ghpages-spa-webpack-plugin

In your webpack.config.js

const GHPagesSPAWebpackPlugin = require('ghpages-spa-webpack-plugin');

module.exports = {
  plugins: [
    new GHPagesSPAWebpackPlugin({
      domain: 'example.com',
    }),
  ],
};
1.0.1

4 years ago

1.0.0

6 years ago