为了账号安全,请及时绑定邮箱和手机立即绑定

grunt 使用 grunt-contrib-livereload 时提示 Warning:

grunt 使用 grunt-contrib-livereload 时提示 Warning:

心有法竹 2019-03-14 18:19:30
命令与返回P:\ms>grunt liveRunning "livereload-start" task... Starting Livereload server on 35729 ...Running "connect:livereload" (connect) taskWarning: Arguments to path.resolve must be strings Use --force to continue.Aborted due to warnings.Gruntfile.js 部分livereload: {        port: 35729 // Default livereload listening port.},connect: {    livereload: {        options: {            port: 9001,            hostname: 'localhost',            base: '.',            middleware: function(connect, options) {                return [lrSnippet, folderMount(connect, options.base)]            }        }    }},regarde: {    jade: {        files: '*.jade',        tasks: ['jade']    },    html: {        files: ['index.html', 'css/my.css', 'Gruntfile.js'],        tasks: ['jsbeautifier', 'livereload']    },    coffee: {        files: 'js/my.coffee',        tasks: 'coffee'    }},grunt.registerTask('live', ['livereload-start', 'connect', 'regarde']);
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 573 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信