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
– reduce size of the data packed inside the executable with GZip
69
+
- reduce size of the data packed inside the executable with GZip
70
70
$ pkg --compress GZip index.js
71
71
```
72
72
@@ -181,6 +181,22 @@ See also
181
181
[Detecting assets in source code](#detecting-assets-in-source-code) and
182
182
[Snapshot filesystem](#snapshot-filesystem).
183
183
184
+
### Ignore files
185
+
186
+
`ignore` is a list of globs. Files matching the paths specified as `ignore`
187
+
will be excluded from the final executable.
188
+
189
+
This is useful when you want to exclude some files from the final executable,
190
+
like tests, documentation or build files that could have been included by a dependency.
191
+
192
+
```json
193
+
"pkg": {
194
+
"ignore": [ "**/*/dependency-name/build.c" ]
195
+
}
196
+
```
197
+
198
+
To see if you have unwanted files in your executable, read the [Exploring virtual file system embedded in debug mode](#exploring-virtual-file-system-embedded-in-debug-mode) section.
199
+
184
200
### Options
185
201
186
202
Node.js application can be called with runtime options
@@ -413,7 +429,7 @@ printenv | grep NODE
413
429
414
430
## Advanced
415
431
416
-
### exploring virtual file system embedded in debug mode
432
+
### Exploring virtual file system embedded in debug mode
417
433
418
434
When you are using the `--debug` flag when building your executable,
419
435
`pkg` add the ability to display the content of the virtual file system
0 commit comments