From 23a0e134f15766ab4cd55adf9b6b5c9a5eca8c55 Mon Sep 17 00:00:00 2001 From: CarreraPHP Date: Tue, 27 Dec 2016 00:05:37 +0530 Subject: [PATCH 1/3] chore(webpack): enable xhtml tags in ng build --- packages/angular-cli/models/webpack-build-common.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/angular-cli/models/webpack-build-common.ts b/packages/angular-cli/models/webpack-build-common.ts index d44226a798bf..7c784c1a6eb8 100644 --- a/packages/angular-cli/models/webpack-build-common.ts +++ b/packages/angular-cli/models/webpack-build-common.ts @@ -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 From d191d4ae34e729f434e7220c0c0d8f8c786f6c0f Mon Sep 17 00:00:00 2001 From: CarreraPHP Date: Tue, 27 Dec 2016 00:18:15 +0530 Subject: [PATCH 2/3] Revert "chore(webpack): enable xhtml tags in ng build" This reverts commit 23a0e134f15766ab4cd55adf9b6b5c9a5eca8c55. --- packages/angular-cli/models/webpack-build-common.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/angular-cli/models/webpack-build-common.ts b/packages/angular-cli/models/webpack-build-common.ts index 7c784c1a6eb8..d44226a798bf 100644 --- a/packages/angular-cli/models/webpack-build-common.ts +++ b/packages/angular-cli/models/webpack-build-common.ts @@ -137,8 +137,7 @@ 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, - xhtml: true + excludeChunks: lazyChunks }), new BaseHrefWebpackPlugin({ baseHref: baseHref From 16061d323ea32a193e5fab49599302d7cfadc549 Mon Sep 17 00:00:00 2001 From: CarreraPHP Date: Fri, 13 Jan 2017 23:24:09 +0530 Subject: [PATCH 3/3] chore(help): remove ng help false errors chore(help): remove false errors show in ng help for files that are not meant to be cli command yet co-exist in the same path as run files --- packages/angular-cli/commands/help.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/angular-cli/commands/help.ts b/packages/angular-cli/commands/help.ts index d0e02945402b..321519884184 100644 --- a/packages/angular-cli/commands/help.ts +++ b/packages/angular-cli/commands/help.ts @@ -6,9 +6,13 @@ const stringUtils = require('ember-cli-string-utils'); const lookupCommand = require('../ember-cli/lib/cli/lookup-command'); const commandsToIgnore = [ + 'build.run', 'easter-egg', 'destroy', - 'github-pages-deploy' // errors because there is no base github-pages command + 'github-pages-deploy', // errors because there is no base github-pages command + 'github-pages-deploy.run', + 'init.run', + 'serve.run' ]; const HelpCommand = Command.extend({