title: How to import CSS modules with Typescript, React and Webpack
body: <p>How to import CSS modules in Typescript with Webpack?</p>
  
  <ol>
  <li><p>Generate (or auto-generate) <code>.d.ts</code> files for CSS? And use classic Typescript <code>import</code> statement? With <code>./styles.css.d.ts</code>:</p>
  
  <pre><code>import * as styles from './styles.css'
  </code></pre></li>
  <li><p>Import using <code>require</code> Webpack function?</p>
  
  <pre><code>let styles = require("./styles.css");
  </code></pre></li>
  </ol>
  
  <p>But for the last approach I must define the <code>require</code> function.</p>
  
  <p>What is the best approach or best option and one that can also handle IntelliSense for the CSS file definitions and classes?</p>