Skip to content

Commit 01beb52

Browse files
alan-agius4alexeagle
authored andcommitted
feat(@angular-devkit/build-angular): add ignore option to assets object
You can now provide an array of globs to `ignore` from copying Closes #11850
1 parent bdebc9e commit 01beb52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/documentation/stories/asset-configuration.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Project assets
22

33
You use the `assets` array inside the build target in `angular.json` to list files or folders
4-
you want to copy as-is when building your project.
4+
you want to copy as-is when building your project. if you think you need to exclude files,
5+
consider not putting that thing in the assets
56

67
By default, the `src/assets/` folder and `src/favicon.ico` are copied over.
78

@@ -23,7 +24,7 @@ The array below does the same as the default one:
2324
]
2425
```
2526

26-
- `glob` is the a [node-glob](https://github.com/isaacs/node-glob) using `input` as base directory.
27+
- `glob` is a [node-glob](https://github.com/isaacs/node-glob) using `input` as base directory.
2728
- `input` is relative to the workspace root.
2829
- `ignore` is a list of globs to ignore from copying.
2930
- `output` is relative to `outDir` (`dist/project-name` default).

0 commit comments

Comments
 (0)