Enable it to produce inline or external sourcemaps.In my Gulp file that I’m using to customize Bootstrap, I have a segment that simply copies over a few Bootstrap. Sourcemap support is built directly into src() and dest(), but is disabled by default. When false, treat a # character at the start of a glob as a comment. This may result in dangling links.Ī previously generated cache object - avoids some file system calls.Ī previously generated cache of fs.Stat results - avoids some file system calls.Ī previously generated cache of symbolic links - avoids some file system calls. If true, fs.realpath() is called on all results. Note: This can cause problems with cyclical links. If true, symlinked directories will be traversed when expanding ** globs. Note: These globs are always matched against dot files, regardless of any other settings. This option is combined with negated globs. Note: To match only directories, end your glob with a /. If true, only matches files, not directories. *.js would be treated as equivalent to **/*.js. If true and globs don't contain any / characters, traverses all directories and matches that glob - e.g. Note: On case-insensitive file systems, non-magic patterns will match by default. If true, performs a case-insensitive match. If true, avoids matching extglob patterns - e.g. If true, treats double-star glob character as single-star glob character. If true, avoids expanding brace sets - e.g. If true, debugging information will be logged to the command line. When false, prevents duplicate files in the result set. If true, an error will be thrown if an unexpected problem is encountered while attempting to read a directory. This adds extra overhead and generally should not be used. If true, fs.stat() is called on all results. If true, disables sorting the glob results. Generally not needed because paths are normalized within the pipeline. If true, a / character will be appended to directory matches. Note: This option is passed directly to node-glob but defaulted to true instead of false. When true, suppresses warnings from printing on stderr. This option is passed directly to node-glob. If true, compare globs against dot files, like. Note: When using a function, the function receives the streamed data (objects containing cwd, base, path properties). Remove duplicates from the stream by comparing the string property name or the result of the function. When false, globs which can only match one file (such as foo/bar.js) causes an error to be thrown if they don't find a match. The root path that globs are resolved against. If true, cwd and base options should be aligned. This option is passed directly to glob-stream.Įxplicitly set the base property on created Vinyl objects. Use to avoid combining globs with path.join(). The directory that will be combined with any relative path to form an absolute path. If false, preserves the symbolic links and sets the Vinyl object's symlink property to the original file's path. When true, recursively resolves symbolic links to their targets. Loads inline sourcemaps and resolves external sourcemap links. If true, enables sourcemaps support on Vinyl objects created. When true, removes the BOM from UTF-8 encoded files. When set, only creates Vinyl objects for files modified since the specified time. If false, files will be not be read and their Vinyl objects won't be writable to disk via. Note: Plugins may not implement support for streaming contents. It may not be possible to buffer the contents of large files. If false, the Vinyl object's contents property will be a paused stream. When true, file contents are buffered into memory. Options #įor options that accept a function, the passed function will be called with each Vinyl object and must return a value of another listed type. When an invalid glob is given in globs, throws an error with the message, "Invalid glob argument". To suppress this error, set the allowEmpty option to true. When the globs argument can only match one file (such as foo/bar.js) and no match is found, throws an error with the message, "File not found with singular glob". Src ( globs, ) Copy Parameters # parameterĪ stream that can be used at the beginning or in the middle of a pipeline to add files based on the given globs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |