A
A
Alexander2019-04-02 14:42:21
gulp.js
Alexander, 2019-04-02 14:42:21

How to upload to gulp server with watch?

Hello!
Help with gulpfile.js. By default (gulp command) builds sass and starts the watcher. It is necessary that after the assembly there was an unloading on the server.
Now the gulp deploy command runs, but when the tracked file changes, it gives an error:

[17:35:04] Starting 'deploy'...
Changes detected! Uploading file "undefined", undefined
[17:35:07] 'deploy' errored after 3.88 s
[17:35:07] Error: Invalid glob argument:
    at Gulp.src (путь\node_modules\vinyl-fs\lib\src\index.js:20:11)
    at FSWatcher.<anonymous> (путь\gulpfile.js:61:8)
    at FSWatcher.emit (events.js:182:13)
    at FSWatcher.EventEmitter.emit (domain.js:460:23)
    at FSWatcher.<anonymous> (путь\node_modules\chokidar\index.js:199:15)
    at FSWatcher._emit (путь\node_modules\chokidar\index.js:241:5)
    at FSWatcher.<anonymous> (путь\node_modules\chokidar\lib\nodefs-handler.js:274:18)
    at FSReqWrap.oncomplete (fs.js:159:5)

Source gulpfile.js
jsfiddle.net/L5n4o18z/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question