Using gulp without global gulp //edit: and without linking to the bin js file

前端 未结 6 1129
野趣味
野趣味 2021-02-12 18:16

I have a gulpfile.js that runs through perfectly when typing gulp into the commandline.

All the gulp bash command really does is calling the sp

6条回答
  •  北海茫月
    2021-02-12 18:32

    Reiterating the answers above, but including the gulpfile location and a gulp command (in this case build. On Windows you can use the following:

    node node_modules\gulp\bin\gulp.js build --gulpfile "C:\my_project_location\gulpfile.js"

提交回复
热议问题