【发布时间】:2014-07-10 18:44:27
【问题描述】:
我在一个 git 子模块中有整个 bootstrap-sass 项目。当我只告诉它查看 sass/bootstrap/vendor 时,为什么 grunt 会查看 sass/bootstrap/test/ 并且失败了?
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
compass: {
dist: {
options: {
sassDir: 'sass',
cssDir: 'style'
},
files: {
'style/bootstrap.css': 'sass/bootstrap/vendor/assets/stylesheets/bootstrap.scss'
}
}
},
watch: {
sass: {
files: [
'sass/bootstrap/vendor/assets/stylesheets'
],
tasks: ['compass']
}
}
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', [
'compass',
'watch'
]);
};
$ grunt:
Running "compass:dist" (compass) task
directory style/bootstrap/templates/project/
directory style/bootstrap/test/dummy_sass_only/
directory style/bootstrap/test/dummy_node_mincer/
directory style/bootstrap/vendor/assets/stylesheets/
directory style/bootstrap/vendor/assets/stylesheets/bootstrap/
directory style/bootstrap/test/dummy_rails/app/assets/stylesheets/
error sass/bootstrap/templates/project/styles.sass (Line 1: File to import not found or unreadable: bootstrap-compass.
【问题讨论】:
标签: twitter-bootstrap sass gruntjs compass-sass