title: how to export and import style in npm package?
body: <p>I have a React component and I publish the component in NPM registry that I build with webpack. In my main project I consumed the component npm package JS like that:</p>
  <pre class="lang-js prettyprint-override"><code>import myComp from 'myComp';
  </code></pre>
  <p>The problem is that <code>myComp</code> also has CSS, that I build into <code>dist/index.css</code> with the help of webpack and <code>ExtractTextPlugin</code> (which builds all the css into one file).</p>
  <p>And I want to consume the style like this:</p>
  <pre class="lang-js prettyprint-override"><code>import 'myComp/index.css';
  </code></pre>
  <p>Or</p>
  <pre class="lang-js prettyprint-override"><code>import 'myComp/index';
  </code></pre>
  <p>And in <code>myComp</code> npm package I want to expose it in a way that will support this import method.</p>
  <p>NOTE: I don't want to import it directly from <code>node_modules</code></p>
  <pre class="lang-js prettyprint-override"><code>import '../../../node_modules/myComp/index.css'; // bad
  </code></pre>
  <p>Thanks!</p>