# simple-react-webpack-static-plugin

> This plugin creates an HTML file with static markup from each JSX entry-point in a webpack config. It expects you have written your application to use ES-2015.

Latest version **5.0.4** (published 2017-08-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install simple-react-webpack-static-plugin
pnpm add simple-react-webpack-static-plugin
yarn add simple-react-webpack-static-plugin
bun add simple-react-webpack-static-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.4 |
| Published | 2017-08-23 |
| First published | 2016-06-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | info@standardpixel.com |
| Maintainers | standardpixel |
| Keywords | react, webpack, es6, static |

## Links

- npm: https://www.npmjs.com/package/simple-react-webpack-static-plugin
- Issues: https://github.com/standardpixel/simple-react-webpack-static-plugin/issues
- npm.io page: https://npm.io/package/simple-react-webpack-static-plugin

## Dependencies (12)

- [ava](https://npm.io/package/ava.md) ^0.21.0
- [react](https://npm.io/package/react.md) ^15.0.2
- [postcss](https://npm.io/package/postcss.md) ^6.0.6
- [babel-cli](https://npm.io/package/babel-cli.md) ^6.24.1
- [react-dom](https://npm.io/package/react-dom.md) ^15.0.2
- [caniuse-lite](https://npm.io/package/caniuse-lite.md) ^1.0.30000700
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.3.5
- [babel-register](https://npm.io/package/babel-register.md) ^6.24.1
- [postcss-import](https://npm.io/package/postcss-import.md) ^10.0.0
- [postcss-cssnext](https://npm.io/package/postcss-cssnext.md) ^3.0.2
- [babel-preset-react](https://npm.io/package/babel-preset-react.md) ^6.24.1
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.24.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 5.0.4 (latest) — 2017-08-23
- 5.0.3 — 2017-07-18
- 5.0.2 — 2017-07-06
- 5.0.1 — 2017-07-06
- 5.0.0 — 2017-07-05
- 1.0.6 — 2016-06-30
- 1.0.5 — 2016-06-27
- 1.0.4 — 2016-06-27
- 1.0.3 — 2016-06-27
- 1.0.2 — 2016-06-27
- 1.0.1 — 2016-06-27
- 1.0.0 — 2016-06-27

## README

# simple-react-webpack-static-plugin

[![Build Status](https://travis-ci.org/standardpixel/simple-react-webpack-static-plugin.svg?branch=master)](https://travis-ci.org/standardpixel/simple-react-webpack-static-plugin)

This plugin creates an HTML file with static markup from each JSX entry-point in a webpack config. It expects you have written your application to use ES-2015.

## Example Usage

_webpack.config.js_
```
var SimpleReactWebpackStaticPlugin = require('simple-react-webpack-static-plugin');

module.exports = {
  entry: {
    index: './path/to.jsx'
  },

  plugins: [
    new SimpleReactWebpackStaticPlugin({
      "default": {
        "title": "The title for your website"
      },
    })
  ]
};
```

## Interface
  * SimpleReactWebpackStaticPlugin Arguments
    * **pages** (object) _Required_ [Configuration for page templates, contains keys matching the names of each entry point in your webpack config and a default]
      * **default** (object) _Required_ [Template variables]
        * **title** (string) _Required for default template_ [Page title]
  * **options** (object) _Optional_
    **template** (string) _Optional_ [An override function which returns a template sting]
    **ignore-extensions** (array) _Optional_ [File extensions for NodeJs to ignore when reading your modules. This is useful if you are using webpack loaders to load non-javascript files]

---
_Source: https://npm.io/package/simple-react-webpack-static-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
