Skip to content

Commit ea2cfc2

Browse files
Fix Angular2Spa "template parse errors" in production builds (was caused by html-loader's HTML minification feature)
1 parent fadb2b3 commit ea2cfc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/Angular2Spa/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var sharedConfig = {
1616
module: {
1717
loaders: [
1818
{ test: /\.ts$/, include: /ClientApp/, loaders: ['ts-loader?silent=true', 'angular2-template-loader'] },
19-
{ test: /\.html$/, loader: 'html-loader' },
19+
{ test: /\.html$/, loader: 'html-loader?minimize=false' },
2020
{ test: /\.css$/, loader: 'to-string-loader!css-loader' },
2121
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url-loader', query: { limit: 25000 } }
2222
]

0 commit comments

Comments
 (0)