You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/extensions.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,8 @@ To learn more about TFX, its pre-reqs and how to install, see the [readme](../RE
15
15
### Arguments
16
16
17
17
*`--root`: Root directory.
18
-
*`--manifest-js`: Manifest in the form of a standard Node.js CommonJS module with an exported function.
19
-
The function takes an environment as a parameter and must return the manifest JSON object.
20
-
Environment variables are specified with the env command line parameter.
21
-
If this is present then the manifests, manifest-globs, json5, override, and overrides-file arguments are ignored.
22
-
*`--env`: Environment variables passed to the manifestJs module. Space separated key-value pairs, e.g. `--env mode=prod size=large`
18
+
*`--manifest-js`: Manifest in the form of a standard Node.js CommonJS module with an exported function. If present then the manifests, manifest-globs, json5, override, and overrides-file arguments are ignored.
19
+
*`--env`: Environment variables passed to the manifestJs module.
23
20
*`--manifests`: List of individual manifest files (space separated).
24
21
*`--manifest-globs`: List of globs to find manifests (space separated).
25
22
*`--override`: JSON string which is merged into the manifests, overriding any values.
@@ -51,6 +48,10 @@ The version included in the packaged .VSIX and in the source manifest file is no
51
48
52
49
#### Manifest JS file
53
50
51
+
Eventually you will find the need to disambiguate in your manifest contents between development and production builds. Use the manifest-js option to supply a Node.JS CommonJS module and export a function. The function will be invoked with an environment property bag as a parameter, and must return the manifest JSON object.
52
+
53
+
Environment variables for the property bag are specified with the `--env` command line parameter. These are space separated key-value pairs, e.g. `--env mode=production rootpath="c:\program files" size=large`.
54
+
54
55
An example manifest JS file might look like the following:
0 commit comments