javascript - grunt.js compass task setting directory issue -
i'm trying utilize compass task compile scss css file using grunt.js
my project folder follows:
/my-project /myaccount /assets /css /scss /node_modules gruntfile.js package.json
my gruntfile.js is:
module.exports = function(grunt){ require("matchdep").filterdev("grunt-*").foreach(grunt.loadnpmtasks); grunt.initconfig({ pkg: grunt.file.readjson('package.json'), compass: { // task dev: { // target options: { sassdir: ['scss'], cssdir: ['css'] } } } }); grunt.registertask('default', ['compass']); };
try this:
compass: { options: { sassdir: 'myaccount/assets/scss', cssdir: 'myaccount/assets/css', generatedimagesdir: '.tmp/images/generated', imagesdir: 'images', javascriptsdir: 'scripts', fontsdir: 'fonts', importpath: './bower_components', httpimagespath: '/images', httpgeneratedimagespath: '/images/generated', httpfontspath: '/styles/fonts', relativeassets: false, assetcachebuster: false, raw: 'sass::script::number.precision = 10\n' }, dist: { options: { generatedimagesdir: 'images/generated' } }, server: { options: { debuginfo: true } } },
javascript gruntjs
No comments:
Post a Comment