Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(webpack): enable xhtml tags in ng build #3743

Merged
merged 8 commits into from
Dec 28, 2016
3 changes: 2 additions & 1 deletion packages/angular-cli/models/webpack-build-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export function getWebpackCommonConfig(
template: path.resolve(appRoot, appConfig.index),
filename: path.resolve(appConfig.outDir, appConfig.index),
chunksSortMode: packageChunkSort(['inline', 'styles', 'scripts', 'vendor', 'main']),
excludeChunks: lazyChunks
excludeChunks: lazyChunks,
xhtml: true
}),
new BaseHrefWebpackPlugin({
baseHref: baseHref
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/build/scripts-array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function () {
.then(() => expectFileToMatch('dist/common-entry.bundle.css', '.common-entry-style'))
// index.html lists the right bundles
.then(() => expectFileToMatch('dist/index.html', oneLineTrim`
<link href="common-entry.bundle.css" rel="stylesheet">
<link href="common-entry.bundle.css" rel="stylesheet"/>
`))
.then(() => expectFileToMatch('dist/index.html', oneLineTrim`
<script type="text/javascript" src="inline.bundle.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/tests/build/styles/styles-array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export default function () {
.then(() => expectToFail(() => expectFileToExist('dist/renamed-lazy-styles.bundle.js')))
// index.html lists the right bundles
.then(() => expectFileToMatch('dist/index.html', oneLineTrim`
<link href="renamed-style.bundle.css" rel="stylesheet">
<link href="styles.bundle.css" rel="stylesheet">
<link href="common-entry.bundle.css" rel="stylesheet">
<link href="renamed-style.bundle.css" rel="stylesheet"/>
<link href="styles.bundle.css" rel="stylesheet"/>
<link href="common-entry.bundle.css" rel="stylesheet"/>
`))
.then(() => expectFileToMatch('dist/index.html', oneLineTrim`
<script type="text/javascript" src="inline.bundle.js"></script>
Expand Down