We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21c639d commit e24a50fCopy full SHA for e24a50f
README.md
@@ -333,7 +333,14 @@ _TIP_: remember to use `withLib` when *not* using import-tree as a module import
333
```nix
334
# import-tree.files : [ <list-of-files> ]
335
336
-((import-tree.withLib lib).initFilter (lib.hasSuffix ".js")).files # => list of all .js files
+# paths to give to uglify-js
337
+lib.pipe import-tree [
338
+ (i: i.initFilter (lib.hasSuffix ".js")) # look for .js files. ignore nothing.
339
+ (i: i.addPath ./out) # under the typescript compiler outDir
340
+ (i: i.withLib lib) # set lib since we are not importing modules.
341
+ (i: i.files)
342
+]
343
+# => list of all .js files
344
```
345
346
### `import-tree.result`
0 commit comments