命令与返回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/150
提交
取消