prerender-loader
prerender-loader copied to clipboard
📰 Painless universal pre-rendering for Webpack.
Webpack config ```js // ... mode: 'production', rules: [ { test: path.resolve(__dirname, 'public/index.html'), loader: 'prerender-loader?string' }, // ... plugins: [ new CleanWebpackPlugin(), new MiniCssExtractPlugin({ filename: 'css/[name].css', chunkFilename: 'css/[name].css', }), new...
There is a mistake in the README where `render` is being called with `renderToString` imported above.
"html-webpack-plugin": "^4.0.0-beta.5"
Something up with the latest react hooks stuff. I'm trying to narrow it down but no luck so far. `Error: Uncaught [TypeError: Cannot read property 'network' of null]` `result =...
This should fix #29. (update: it doesn't).
is there a way to access 'PRERENDER' env variable inside a regular template.html? ``` if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/service-worker.js'); } Taco You need to enable JavaScript to run this...
:bug: Not able to use some of `html-webpack-plugin`'s templating features. Example from https://github.com/jantimon/html-webpack-plugin/blob/master/README.md#generating-multiple-html-files ``` ``` is rendered by this plugin as ``` <%= htmlWebpackPlugin.options.title %> ```
Hi, the prerender-loader works fine for me except when it comes to css. In my index.js: `import './style.scss` But when I run the build I get this error: `ERROR in...
Sounds like a great way to optimize performance, but i'm very curious if this will serve actual content pre-rendered, or just some sort of placeholder skeleton? Thanks for making this!