项目作者: mvandrew

项目描述 :
Corrects a relative path error
高级语言: JavaScript
项目地址: git://github.com/mvandrew/gulp-filterpath.git
创建时间: 2019-07-06T09:49:58Z
项目社区:https://github.com/mvandrew/gulp-filterpath

开源协议:MIT License

下载


gulp-filterpath

NPM

Build Status

Dependencies

Corrects the relative path error for the Gulp watch task.

Install

npm:

  1. $ npm install --save-dev gulp-filterpath

yarn:

  1. yarn add -D gulp-filterpath

Usage

  1. const path = require("path");
  2. const filterPath = require("gulp-filterpath");
  3. const config = {
  4. src: "./theme/src",
  5. dist: "./theme/assets",
  6. };
  7. const correct_path = filterPath(__dirname, path.resolve(config.src, "js/**/*.js"));

Parameters

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