Using css modules with Extract Text Plugin

Posted by Editorial Staff | Updated on

Using css modules with Extract Text Plugin. For production, I’m adding the prefix cssm on all of my css modules class names in the “localIdentName” property so that I can later use PurifyCSSPlugin and whitelist every class containing cssm:

For development it’s a lot simpler:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers