2014-09-22 45 views
0

啓動時,我想讓頁面打開多個頁面。Grunt開啓多個頁面?

一個人怎麼使用咕嚕開插件,打開多個頁面?

E.g.我的配置是這樣的:

module.exports = function (grunt) { 

    'use strict'; 

    require('load-grunt-tasks')(grunt); 

    grunt.initConfig({ 
    // ... Skip through all of the other config 

    open: { 
     server: { 
      url: 'http://localhost:<%= express.options.port %>/index.html' 
     } 
    }, 

    grunt.registerTask('default', ['server', 'open']); 
}); 

回答