Skip to content

Commit 381d35f

Browse files
committed
fix(@schematics/angular): remove empty scripts option value from new applications
The `scripts` option with an empty array value has been removed from newly generated applications including with `ng new`. This option is less commonly used and can be added if needed by a project. The removal reduces the total size of the generated `angular.json`.
1 parent ee7f962 commit 381d35f

File tree

1 file changed

+0
-2
lines changed
  • packages/schematics/angular/application

1 file changed

+0
-2
lines changed

packages/schematics/angular/application/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ function addAppToWorkspaceFile(
244244
inlineStyleLanguage,
245245
assets: [{ 'glob': '**/*', 'input': `${projectRoot}public` }],
246246
styles: [`${sourceRoot}/styles.${options.style}`],
247-
scripts: [],
248247
},
249248
configurations: {
250249
production: {
@@ -284,7 +283,6 @@ function addAppToWorkspaceFile(
284283
inlineStyleLanguage,
285284
assets: [{ 'glob': '**/*', 'input': `${projectRoot}public` }],
286285
styles: [`${sourceRoot}/styles.${options.style}`],
287-
scripts: [],
288286
},
289287
},
290288
},

0 commit comments

Comments
 (0)