mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
In Angular2Spa, use css-loader so you can reference external images from CSS files, etc.
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
"raw-loader": "^0.5.1",
|
||||
"rxjs": "5.0.0-beta.12",
|
||||
"style-loader": "^0.13.0",
|
||||
"to-string-loader": "^1.1.5",
|
||||
"ts-loader": "^0.8.2",
|
||||
"typescript": "^2.0.0",
|
||||
"url-loader": "^0.5.7",
|
||||
|
||||
@@ -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