Isomorphic React / extract-text-webpack-plugin, plugins removes all classNames and puts them into module.exports


Isomorphic React / extract-text-webpack-plugin, plugins removes all classNames and puts them into module.exports

Hoping someone can help me with this, I'm using extract-text-webpack-plugin to extract all css into a single file (From React CSS Modules).

But it's doing more than just that, it creates new classnames that it puts into its own module.exports, like so:

http://ift.tt/2uup9KX

Obviously this is useless, because now it becomes dependent on JS to work on client side, to even show styling. Any ideas on how I can stop this from happing?

Here's my extract config bit: http://ift.tt/2v3Ozw1

Searched for two days on the internet now, can't figure it out. Any help appreciated.

Submitted July 15, 2017 at 10:15PM by Fithy
via reddit http://ift.tt/2uuRJfl

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s