咕噜声打开多个页面?

时间:2014-09-22 15:29:23

标签: gruntjs

启动时,我希望该页面可以打开多个页面。

如何使用grunt-open插件打开多个页面?

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']);
});

1 个答案:

答案 0 :(得分:0)

结束这样做:

open: {
   url1: {
      path: 'http://localhost:<%= express.options.port %>/index.html'
  },
   url2: {
      path: 'http://localhost:<%= express.options.port %>/index2.html'
    }
}

来源:https://github.com/jsoverson/grunt-open/issues/25#issuecomment-56428370

相关问题