These are chat archives for AngularClass/NG6-starter

11th
Feb 2016
Gediminas Bivainis
@bivainis
Feb 11 2016 10:06
so I managed to make image assets work
problem was that this starter uses 'raw' as html loader
so instead of {test: /\.html$/, loader: 'raw'}
I managed to succeed by using
{test: /\.(png|jpg)$/, loader: 'url-loader?mimetype=image/png'},
 {test: /\.html/, exclude: /(node_modules)/, loader: 'html-loader'},
and then just a simple <img src="img/path/relative/to/component's html"