Grunt-bower不会将文件复制到正确的目的地

时间:2016-05-11 19:28:46

标签: javascript gruntjs bower

我正在运行Grunt 1.0.1,bower 1.7.9,以及grunt-bower 0.21.1

当我运行grunt任务bower:dev时,它应该从bower中提取主文件并将它们放入目录中。所有文件都以主目标目录结尾。特定于扩展名的目录被忽略。我似乎无法弄清问题是什么。

Gruntfile.js

module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-bower');
grunt
    .initConfig({
            bower: {
                dev: {
                    js_dest: 'target/js',
                    css_dest: 'target/css',
                    dest: 'target/bower_components',
                    base: 'bower_components'
                }

            }

        }
    )

};

bower.json

 {
  "name": "springangulardemo",
  "version": "1.0.0",
  "appPath": "src/main/webapp",
  "dependencies": {
    "angular": "~1.5.5",
    "angular-animate": "~1.5.5",
    "angular-aria": "~1.5.5",
    "angular-messages": "~1.5.5",
    "angular-mocks": "~1.5.5",
    "angular-route": "~1.5.5",
    "angular-sanitize": "~1.5.5",
    "angular-material": "^1.0.8"
  }
}

由于

0 个答案:

没有答案