与grunt-contrib-concat的连接不起作用

时间:2014-02-21 20:02:56

标签: gruntjs

我使用grunt-contrib-concat,但它似乎不起作用。 所有文件都在文件夹中。

我使用--verbose查看详细信息,但一切似乎都正常。

 concat: {
   options: {
    // define a string to put between each file in the concatenated output
    separator: ';'
  },
   dist: {
      // the files to concatenate
      src: [
          //'assets/javascript/components/*.js',
          'assets/javascript/components/jquery-ui-1.10.3.custom.js',
          'assets/javascript/components/spectrum.js',
          'assets/javascript/components/prefixfree.min.js',
         'assets/javascript/src/jquery.menu_css3.js'
      ],
      // the location of the resulting JS file
      dest: 'assets/javascript/jquery.<%= pkg.name %>.min.js'
    }
  },

使用--verbose

运行任务
Running "concat" task

Running "concat:dist" (concat) task
Verifying property concat.dist exists in config...OK
Files: assets/javascript/src/jquery.menu_css3.js ->         assets/javascript/jquery.menu_css3.min.js
Options: separator=";", banner="", footer="", stripBanners=false, process=false
Reading assets/javascript/src/jquery.menu_css3.js...OK
Writing assets/javascript/jquery.menu_css3.min.js...OK
File "assets/javascript/jquery.menu_css3.min.js" created.

Running "uglify" task

Running "uglify:dist" (uglify) task
Verifying property uglify.dist exists in config...OK
Files: assets/javascript/jquery.menu_css3.min.js ->         assets/javascript/jquery.menu_css3.min.js
Options: banner="", footer="", compress={"warnings":false}, mangle={}, beautify=false,     report=false
Minifying with UglifyJS...Reading assets/javascript/jquery.menu_css3.min.js...OK
OK
Writing assets/javascript/jquery.menu_css3.min.js...OK
File "assets/javascript/jquery.menu_css3.min.js" created.

0 个答案:

没有答案