Fix Angular2Spa "template parse errors" in production builds (was caused by html-loader's HTML minification feature)

This commit is contained in:
SteveSandersonMS
2016-11-28 16:09:08 +00:00
parent fadb2b3127
commit ea2cfc277c

View File

@@ -16,7 +16,7 @@ var sharedConfig = {
module: {
loaders: [
{ test: /\.ts$/, include: /ClientApp/, loaders: ['ts-loader?silent=true', 'angular2-template-loader'] },
{ test: /\.html$/, loader: 'html-loader' },
{ test: /\.html$/, loader: 'html-loader?minimize=false' },
{ test: /\.css$/, loader: 'to-string-loader!css-loader' },
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url-loader', query: { limit: 25000 } }
]