大佬教程收集整理的这篇文章主要介绍了gruntjs – grunt-contrib-connect错误:中间件未定义,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
这样做时,我有一个grunt-contrib-connect错误,这是我使用–verbose选项的时候:
Running "connect:test" (connect) task Verifying property connect.test exists in config...oK File: [no files] Options: protocol="http",port=9001,hostname="localhost",base=".",directory=null,keepalive=false,debug=false,livereload=35729,open=false,useAvailablePort=false,onCreateServer=null,middleware=undefined Warning: undefined is not a function Use --force to conTinue. Aborted due to warnings.
所以似乎中间件负责这个问题,这里是:
@H_134_9@middleware: function (connect) { return [ connect.static('.tmp'),connect.static('test'),connect().use( '/bower_components',connect.static('./bower_components') ),connect.static(appConfig.app) ]; }
任何帮助我解决这个问题的帮助都非常受欢迎:)
以上是大佬教程为你收集整理的gruntjs – grunt-contrib-connect错误:中间件未定义全部内容,希望文章能够帮你解决gruntjs – grunt-contrib-connect错误:中间件未定义所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。