We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89225f2 commit 3ca18b4Copy full SHA for 3ca18b4
packages/@angular/cli/models/webpack-configs/browser.ts
@@ -49,7 +49,12 @@ export function getBrowserConfig(wco: WebpackConfigOptions) {
49
filename: path.resolve(buildOptions.outputPath, appConfig.index),
50
chunksSortMode: packageChunkSort(appConfig),
51
excludeChunks: lazyChunks,
52
- xhtml: true
+ xhtml: true,
53
+ minify: buildOptions.target === 'production' ? {
54
+ caseSensitive: true,
55
+ collapseWhitespace: true,
56
+ keepClosingSlash: true
57
+ } : false
58
}),
59
new BaseHrefWebpackPlugin({
60
baseHref: buildOptions.baseHref
0 commit comments