mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Fix Angular2Spa "template parse errors" in production builds (was caused by html-loader's HTML minification feature)
This commit is contained in:
@@ -16,7 +16,7 @@ var sharedConfig = {
|
|||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
{ test: /\.ts$/, include: /ClientApp/, loaders: ['ts-loader?silent=true', 'angular2-template-loader'] },
|
{ 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: /\.css$/, loader: 'to-string-loader!css-loader' },
|
||||||
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url-loader', query: { limit: 25000 } }
|
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url-loader', query: { limit: 25000 } }
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user