很满足!Grunt'grunt-bower-concat',忽略mainFiles选项
在过去的几个小时里,我一直试图让mainFiles
选项工作,但它似乎忽略了我包含在那里的每个文件。我已经在列表中尝试了多个插件 - 但没有一个能够通过。诚然,我对Grunt颇为新颖,但我一直在阅读grunt-bower-concat
文档,但没有任何内容。并且已经在实际的插件代码中添加了许多控制台日志,显示没有文件正在传递(当然,在文件恢复之后)。
这是GruntFile我的工作:
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bower_concat: {
main: {
dest: 'Assets/Build/Scripts/plugins.js',
cssDest: 'Assets/Build/Styles/plugins.css',
dependencies: {
'amplify': 'jquery'
},
mainFiles: {
bootstrap: ['bower_components/bootstrap/dist/css/bootstrap.css']
},
exclude: [
'leaflet-illustrate'
]
}
}
});
grunt.loadNpmTasks('grunt-bower-concat');
grunt.registerTask('buildbower', ['bower_concat']);
};
单张意义,说明已被排除(现在),因为它造成十分严重的实际任务造成严重破坏,并没有mainFiles
选项,我不能包括它正确。
有没有人能够以正确的方式引导我,或纠正我? 在此先感谢!
你有没有尝试把引号''bootstrap'' – JLewkovich
那我这样做,并没有帮助黯然:) – Nickvda