From the command line:
npm install style downloader -save-dev file downloader
Now in webpack.config.js add the following line to the loaders array:
{test: / \. (eot | woff2 | woff | ttf | svg) /, loader: 'file-loader'}
Now in your app.component.ts, after the import statements, add the following line:
required ('style! bootstrap / distance / css / bootstrap.css')
It is assumed that you are using the latest version of angular2 / angular2-seed, located here: https://github.com/angular/angular2-seed on November 8, 2016
source share