mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
In Angular2Spa, use angular2-template loader as a step towards AoT compilation. Implements #356
This commit is contained in:
@@ -14,8 +14,8 @@ var sharedConfig = {
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{ test: /\.ts$/, include: /ClientApp/, loader: 'ts', query: { silent: true } },
|
||||
{ test: /\.html$/, loader: 'raw' },
|
||||
{ test: /\.ts$/, include: /ClientApp/, loaders: ['ts?silent=true', 'angular2-template'] },
|
||||
{ test: /\.html$/, loader: 'html' },
|
||||
{ test: /\.css$/, loader: 'to-string!css' },
|
||||
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url', query: { limit: 25000 } }
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user