我使用的是一个基金会/jekyll 样板。
每当我运行咕噜时,它只返回我的style.css中的以下内容
[object Object]它应该从基金会文件中处理scss。
这是gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
options: {
includePaths: ['bower_components/foundation/scss']
},
dist: {
options: {
outputStyle: 'compressed'
},
files: {
'css/style.css': 'scss/style.scss'
}
}
},
watch: {
grunt: { files: ['Gruntfile.js'] },
sass: {
files: 'scss/**/*.scss',
tasks: ['sass']
}
}
});
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('build', ['sass']);
grunt.registerTask('default', ['build','watch']);
}我唯一要做的就是npm安装节点-sass。我咕哝着说,style.css中唯一的代码是object,Object
编辑: ran npm install grunt-sass,css现在编译得很好。
https://stackoverflow.com/questions/29711385
复制相似问题