gulp-filterpath

1.0.3 • Public • Published

gulp-filterpath

NPM

Build Status Dependencies

Corrects the relative path error for the Gulp watch task.

Install

npm:

$ npm install --save-dev gulp-filterpath

yarn:

yarn add -D gulp-filterpath

Usage

const path = require("path");
const filterPath = require("gulp-filterpath");

const config = {
    src: "./theme/src",
    dist: "./theme/assets",
};

const correct_path = filterPath(__dirname, path.resolve(config.src, "js/**/*.js"));

Parameters

  • root_path - The project root path.
  • target_path - Full path to files.

Readme

Keywords

Package Sidebar

Install

npm i gulp-filterpath

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

2.86 kB

Total Files

4

Last publish

Collaborators

  • mvandrew