Fix Angular2Spa "template parse errors" in production builds (was caused by html-loader's HTML minification feature)
This commit is contained in:
parent
fadb2b3127
commit
ea2cfc277c
|
|
@ -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 } }
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue