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: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ With it initialized, you can use any of the following functions:
37
37
-`util.resolveRelativeSourcePath(path)` - resolves a relative output path from a spike project to an absolute path to the source file.
38
38
-`util.isFileIgnored(file)` - given a path to a file in a spike project, returns a boolean for whether the file is ignored or not.
39
39
-`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
40
41
41
42
And some static methods:
42
43
-`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