React Styleguidist 7: hello webpack 4, goodbye Node.js 4, and more

Artem Sapegin
HackerNoon.com
2 min readApr 5, 2018

--

👋 Support Styleguidist on Open Collective 👋

I’m happy to announce a new major release of React Styleguidist.

Webpack 4 support

Webpack 3 is still supported too.

Node.js 6 is the lowest supported version

Styleguidist won’t work with Node.js 4 anymore.

Examples are wrapped in React.Fragment

You don’t need to wrap multiple JSX tags in a div anymore.

Fragment JSX syntax also works:

New format of the template option

We’re now using mini-html-webpack-plugin and @vxna/mini-html-webpack-template instead of html-webpack-plugin. This will make things like adding a favicon or fonts from Google Fonts much easier.

If you’re using a custom HTML template, you need to update your style guide config. Instead of:

You need to use something like this:

Or like this:

There are a few more changes, see a full change log.

❤️ Huge thanks to Andrey Okonetchnikov, Nikolay Burlov, Rubén Moya and others for help with this release️! ❤️

--

--

Artem Sapegin
HackerNoon.com

Frontend developer, passionate photographer and owner of crazy dogs. Creator of React Styleguidist.