floatdrop / gulp-watch

Watch, that actually is an endless stream
MIT License
642 stars 99 forks source link

Watched unexpected filepath #281

Closed YermakovMaxim closed 6 years ago

YermakovMaxim commented 7 years ago

Node.js version: v7.7.4 win32 x64 gulp-watch version: 4.3.11 Globs: ["**/*.{css,js}","!**/_*.{css,js}","!**/*.min.{css,js}"] Filepath: D:\SVN\inessoft\KAZNEB\nabrk-portal-theme\web\src\main\webapp\themes\html\dynamicSpots\nabrk\css\master.min.css Event: change Process CWD: D:\SVN\inessoft\KAZNEB\nabrk-portal-theme Options:

{
  "events": [
    "add",
    "change",
    "unlink"
  ],
  "ignoreInitial": true,
  "readDelay": 10,
  "cwd": "D:\\SVN\\inessoft\\KAZNEB\\nabrk-portal-theme\\web\\src\\main\\webapp",
  "base": "D:\\SVN\\inessoft\\KAZNEB\\nabrk-portal-theme\\web\\src\\main\\webapp",
  "read": false,
  "absolute": true,
  "nosort": true
}

gulp.src ( f ) .pipe ( $.rename ( { extname: ".min".concat ( path.extname ( f ) ) } ) ) .pipe ( gulp.dest ( path.dirname ( f ) ) )

This happens when gulp.dest folder point to the same gulp.src source file folder. When i use another destanation folder, process goes fine.