In Angular2Spa, use angular2-template loader as a step towards AoT compilation. Implements #356

This commit is contained in:
SteveSandersonMS
2016-11-07 13:45:29 -08:00
parent fadcb586c6
commit 11c45321aa
7 changed files with 12 additions and 10 deletions

View File

@@ -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 } }
]