angular.io
angular.io copied to clipboard
Bad configuration ts/latest/guide/webpack
Hi, webpack.common.js have this configuration
{
test: /\.css$/,
include: helpers.root('src', 'app'),
loaders: 'raw-loader'
}
This doesn't work well with background-image, images are hashed with file-loader, only using raw-loader makes the images url broken (beacause there is no hash), its better to change the confiruation like this:
{
test: /\.css$/,
include: helpers.root('src', 'app'),
loaders: ['css-to-string-loader','css-loader']
}
Thanks. I need to investigate.