Minimal, unopinionated static site generator powered by webpack (v3.4.2, last updated Apr 2018). Compiles a custom render function with webpack and executes it for each path to produce static HTML files. Supports React/React Router universal rendering, automatic crawling of links, async rendering via callbacks or promises, and flexible multi-file output. Key differentiators: leaves rendering entirely to the user, works with any view library, and integrates tightly with webpack's build pipeline. Alternatives like Gatsby or Next.js are more opinionated and feature-rich.
npm install static-site-generator-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Configures webpack to generate static HTML files for /hello/ and /world/ using a simple render function.
Set output.libraryTarget: 'umd' in webpack config.
Ensure entry outputs a single bundle that contains the render function, or use the 'entry' option to specify which entry to use.
For webpack 5, consider alternatives like 'html-webpack-plugin' or custom plugin; this plugin may not work correctly.
Use the 'paths' option for explicit control, or ensure crawler only targets relative URLs within your site.
Ensure your entry file exports a function (module.exports = ...) and output.libraryTarget is set to 'umd' or 'commonjs2'.
Use an older version of webpack (3.x) or check plugin compatibility with webpack 4+.
Ensure all required dependencies are either bundled (via webpack externals) or available in the Node environment where webpack runs.
No dependency data recorded yet.