title: Publish an npm package that requires CSS from node_modules
body: <p>A React component I'm trying to publish to npm requires a CSS stylesheet from one of my project's dependencies in <code>node_modules</code>. Basically, my <code>index.js</code> file (which exposes my component to the outside-world) looks like this:</p>
  
  <pre><code>import Gallery from './containers/GalleryContainer';
  require('../../node_modules/jscrollpane/style/jquery.jscrollpane.css');
  export default Gallery;
  </code></pre>
  
  <p>This works within my webpack-powered dev environment because webpack picks up the CSS file and injects it into the DOM (using css-loader and style-loader), but if I'm not sure how to package this up for distribution. I want to publish the package as ES5 and want users to be able to use it within an ES6 context (with webpack/browserify) or directly in the browser.</p>
  
  <p>So far, I transpile my ES6 code into ES5 with Babel into my <code>lib</code> folder on <code>prepublish</code>. That takes care of the javascript, but not the CSS that it requires.</p>
  
  <p>Do I have to instruct users of my library to link the CSS manually or is there a way for that require statement to be portable?</p>