title: Angular2: How to import a stylesheet from node_modules?
body: <p><strong>Question:</strong> In my Angular2 (4.0) app, how can I import stylesheets (css) from a module in node_modules? </p>
  
  <p>I have a module located here: </p>
  
  <pre><code>node_modules/@swimlane/ngx-datatable
  </code></pre>
  
  <p>I want to import this stylesheet:</p>
  
  <pre><code>node_modules/@swimlane/ngx-datatable/release/index.css
  </code></pre>
  
  <p><em>I've tried the following approaches</em>, with no luck: </p>
  
  <p>In my components own scss file:</p>
  
  <pre><code>@import '~@swimlane/ngx-datatable/release/index.css';
  </code></pre>
  
  <p>In my component: </p>
  
  <pre><code>@Component({
    encapsulation: ViewEncapsulation.None,
    selector: 'site_table',
    template: require('./site_table.html'),
    styleUrls: ['./site_table.scss', '@swimlane/ngx-datatable/release/index.css']
  })
  </code></pre>