mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
In Angular2Spa, use css-loader so you can reference external images from CSS files, etc.
This commit is contained in:
@@ -11,7 +11,8 @@ module.exports = {
|
||||
loaders: [
|
||||
{ test: /\.ts$/, include: /ClientApp/, loader: 'ts', query: { silent: true } },
|
||||
{ test: /\.html$/, include: /ClientApp/, loader: 'raw' },
|
||||
{ test: /\.css/, include: /ClientApp/, loader: 'raw' }
|
||||
{ test: /\.css/, include: /ClientApp/, loader: 'to-string!css' },
|
||||
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url', query: { limit: 25000 } }
|
||||
]
|
||||
},
|
||||
output: {
|
||||
|
||||
Reference in New Issue
Block a user