Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
In Angular2Spa, use css-loader so you can reference external images f…
Browse files Browse the repository at this point in the history
…rom CSS files, etc.
  • Loading branch information
SteveSandersonMS committed Sep 20, 2016
1 parent 80343e9 commit 925f47f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions templates/Angular2Spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion templates/Angular2Spa/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 925f47f

Please sign in to comment.