@dr-kobros/html-document-webpack-plugin

0.5.0 • Public • Published

HTML Document Webpack plugin

What?

Renders your app's index HTML file either with React HTML document or a custom component.

Why

I like to use React for this too instead of some static file.

How?

Install from NPM and add the plugin to your webpack config.

Seems to work with both Webpack 1 and 2.

new HtmlCreatorPlugin({
  title: 'Application', // title
  favicon: 'web/favicon.ico', // favicon
  css: [], // array of non-bundled CSS files to prepend
  content: <span>Loading...</span>, // content to render while loading (optional),
  // component: CustomHtmlComponent, // a custom component (optional)
})

Participate

Pull and feature requests, feel welcomed!

/@dr-kobros/html-document-webpack-plugin/

    Package Sidebar

    Install

    npm i @dr-kobros/html-document-webpack-plugin

    Weekly Downloads

    2

    Version

    0.5.0

    License

    BSD-3-Clause

    Last publish

    Collaborators

    • pekkis