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.
npm install 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.
_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"
},
})
]
};
``