1.0.3 • Published 5 years ago

gulp-filterpath v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

gulp-filterpath

NPM

Build Status npm.io 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.
1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago