gulp watch vesrion 4.0
我想在我的项目中使用gulp watch。gulp watch在我的gulpfile.js中不工作。 我在我的项目“gulp”中使用gulp vesrion 4.0“^4.0.0”。我想在刷新页面时看到js文件中的更改。所以我用大口手表请帮帮我。。。谢谢 这是我在gulpfile.js中的代码gulp watch vesrion 4.0,gulp,gulp-watch,Gulp,Gulp Watch,我想在我的项目中使用gulp watch。gulp watch在我的gulpfile.js中不工作。 我在我的项目“gulp”中使用gulp vesrion 4.0“^4.0.0”。我想在刷新页面时看到js文件中的更改。所以我用大口手表请帮帮我。。。谢谢 这是我在gulpfile.js中的代码 gulp.task("MainProjectLibrary", function () { return gulp.src([ "./Public/DragDrop.js",
gulp.task("MainProjectLibrary", function () {
return gulp.src([
"./Public/DragDrop.js",
"app.js",
"./Constants/Errors.js",
"./Constants/Message.js",
"./Constants/APIControllerName.js",
"./Controllers/AppController.js",
"./Services/AppService.js",
"./Services/ReportService.js",
"./Filters/cutTextFilter.js",
"./Filters/enumlistFilter.js",
"./Filters/jalaliDateFilter.js",
"./Filters/checkForNumber.js",
"./Factories/ModalFactory.js",
"./Directives/clickAnywhereDirective.js",
"./Directives/numbersOnlyDirective.js",
"./Scripts/angucomplete-alt.js",
"./Scripts/datePicker.js",
"./Modals/ModalTradeController.js",
"./Modals/ModalDepositController.js",
"./Modals/ModalPeymentRequest.js",
"./Modals/ModalChangeBroker.js",
"./Modals/AlertController.js",
"./Modals/CreateNoteController.js",
"./Modals/DeleteController.js",
"./Modals/EditNoteController.js",
"./Modals/NewMarketWatchController.js",
"./Modals/EditMarketWatchController.js",
"./Modals/ShowSettingController.js",
"./Modals/DivideOrderController.js",
"./Modals/EditNoteSymbolMessagesController.js",
"./Modules/Dashboard/Services/DashboardService.js",
"./Modules/MarketDepth/Controllers/MarketDepthController.js",
"./Modules/Dashboard/Services/DepositService.js",
"./Modules/Dashboard/Controllers/PaymentRequestController.js",
"./Modules/Dashboard/Services/PaymentRequestService.js",
"./Modules/Public/Controllers/SymbolMessageController.js",
"./Modules/Public/Controllers/ChangePasswordController.js",
"./Modules/Public/Services/ChangePasswordService.js",
"./Modules/Reports/Controllers/TradeOrdersController.js",
"./Modules/Reports/Services/TradeOrdersService.js",
"./Modules/Reports/Services/AccountTransactionService.js",
"./Modules/Portfolio/Controllers/PortfolioController.js",
"./Modules/Portfolio/Services/PortfolioService.js",
"./Modules/MarketDepth/Services/MarketDepthService.js",
"./Modules/MarketDepth/Controllers/MarketDepthController.js",
"./Modules/Dashboard/Controllers/ChangeBrokerController.js",
"./Modules/Dashboard/Controllers/DashboardController.js",
"./Modules/Dashboard/Controllers/DepositController.js",
"./Modules/Dashboard/Controllers/PaymentRequestController.js",
"./Modules/Dashboard/Services/ChangeBrokerService.js",
"./Modules/Dashboard/Services/DashboardService.js",
"./Modules/Dashboard/Services/DepositService.js",
"./Modules/Dashboard/Services/PaymentRequestService.js",
"./Modules/Public/Services/SymbolMessageService.js",
"./Modules/Reports/Controllers/AccountTransactionController.js"
])
.pipe(concat("MainProjectLibrary.min.js"))
.pipe(uglify())
.pipe(gulp.dest("./Dist/"));
});
gulp.task("default", function() {
return gulp.watch("./Dist/*.min.js", gulp.series("MainProjectLibrary"));
});
这是我的终端在运行任务后的默认设置。任务未完成
只需将gulp的版本从4x更改为3x,就可以轻松解决前面的问题