title: How can I use CSS Modules in a Nrwl NX workspace?
body: <p>I'm refactoring an old React/Webpack project to Nrwl's NX monorepo solution.
  In that project css modules are used. </p>
  
  <p>For example, styles are imported this way:</p>
  
  <pre><code>import style from './style.scss';
  </code></pre>
  
  <p>and used like this:</p>
  
  <pre><code>const MyComponent = () =&gt; &lt;div className={style.root}&gt;Hello World&lt;/div&gt;
  </code></pre>
  
  <p>This doesn't work in NX, because <code>style</code> is an empty object at runtime, so all class names are gone in the actual output.</p>
  
  <p>Is there a way to make CSS Modules work with NX?</p>