File tree Expand file tree Collapse file tree 1 file changed +3
-25
lines changed
Expand file tree Collapse file tree 1 file changed +3
-25
lines changed Original file line number Diff line number Diff line change @@ -43,29 +43,6 @@ CLI commands run `ngcc` as needed when performing an Angular build.
4343
4444For more information on how to publish libraries see [ Publishing your Library] ( guide/creating-libraries#publishing-your-library ) .
4545
46- {@a speeding-up-ngcc-compilation}
47- ### Speeding up ngcc compilation
48-
49- The standalone ` ngcc ` program can run in parallel over your third party modules, making it more efficient than letting Angular CLI run it as needed.
50-
51- You can run ` ngcc ` after each installation of node_modules by adding a ` postinstall ` [ npm script] ( https://docs.npmjs.com/misc/scripts ) :
52-
53- <code-example language =" json " header =" package.json " >
54- {
55- "scripts": {
56- "postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points"
57- }
58- }
59- </code-example >
60-
61- <div class =" alert is-important " >
62-
63- The ` postinstall ` script will run on every installation of ` node_modules ` , including those performed by ` ng update ` and ` ng add ` .
64-
65- If you perform multiple installs in a row, this can end up being slower than letting Angular CLI run ` ngcc ` on builds.
66-
67- </div >
68-
6946{@a maintaining-library-compatibility}
7047### Maintaining library compatibility
7148
@@ -92,8 +69,9 @@ You can run `ngcc` after each installation of node_modules by adding a `postinst
9269
9370<div class =" alert is-important " >
9471
95- Don't use ` --create-ivy-entry-points ` as this will cause Node not to resolve the Ivy version of the packages correctly.
96-
72+ * The ` postinstall ` script will run on every installation of ` node_modules ` , including those performed by ` ng update ` and ` ng add ` .
73+ * Don't use ` --create-ivy-entry-points ` as this will cause Node not to resolve the Ivy version of the packages correctly.
74+
9775</div >
9876
9977{@a opting-out-of-angular-ivy}
You can’t perform that action at this time.
0 commit comments