【发布时间】:2017-02-09 11:55:04
【问题描述】:
- 这是我的 gruntfile。
- 我运行 $ grunt default
-
实际上我想在某个端口上升级我的 index.html 并希望它直接在 chrom 中打开
module.exports = function(grunt) { grunt.initConfig({ connect: { server: { options: { port: 9001, base: { path: 'Dev', options: { index: 'index.html', maxAge: 300000 } } } } }, open: { delayed: { path: 'http://localhost:9001' app: 'Google Chrome' options: { openOn: 'serverListening' } } } }); grunt.registerTask('default', ['connect', 'open']); };
【问题讨论】:
标签: gruntjs grunt-contrib-watch long-running-processes