Revert the previous
file.path
change
Many plugins change the file.path
somehow. Most commonly the file extension. For example gulp-babel
changes .jsx
extensions to .js
since it compiles JSX. Sometimes that's undesirable though. This plugin makes it easy to revert the path change.
Install
$ npm install --save-dev gulp-revert-path
Usage
const gulp = ;const babel = ;const revertPath = ;const rename = ; gulp; gulp;
API
revertPath([reversions])
reversions
Type: number
Default: 1
Number of times to revert the path.
Related
- vinyl-paths - Get the file paths in a vinyl stream
License
MIT © Sindre Sorhus