Skip to content

Commit 85de4eb

Browse files
committed
docs for new function
1 parent e488661 commit 85de4eb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ With it initialized, you can use any of the following functions:
3737
- `util.resolveRelativeSourcePath(path)` - resolves a relative output path from a spike project to an absolute path to the source file.
3838
- `util.isFileIgnored(file)` - given a path to a file in a spike project, returns a boolean for whether the file is ignored or not.
3939
- `util.runAll(compiler, cb)` - run the given function when webpack's compiler initializes, bound to both the `run` and `run-watch` events.
40+
- `util.pathsToRegex(paths)` - given an array of file paths, builds a regex that will match only those paths
4041

4142
And some static methods:
4243
- `SpikeUtils.filePathFromLoader(loaderContext)` - pass `this` inside a loader and it will return a file object with the absolute and relative paths to the current file being processed.

0 commit comments

Comments
 (0)