caching - How do I prevent Compass from outputting .sass-cache folder using Grunt -
i have .sass-cache folder being auto generated. trying figure out how not let generate @ all. more clear, don't want .sass-cache folder.
i've tried several approaches can't seem keep generating.
here's couple approaches attempted:
- nocache: false or true
- config.rb file with: asset_cache_buster = :none
- config.rb file with: cache = false
here watch doing:
module.exports = function (grunt) { grunt.initconfig({ pkg: grunt.file.readjson('package.json'), watch: { scripts: { files: ['assets/js/*.js'], tasks: ['concat', 'uglify', 'copy', 'clean'], options: { spawn: false } }, scss: { files: ['assets/scss/*.scss'], tasks: ['compass', 'cssmin'], } },
then later on, here compass doing & snippet of tasks:
compass: { development: { options: { config: './config.rb', sassdir: 'assets/scss', cssdir: 'assets/css' } } }, clean:{ build: { } } }); grunt.loadnpmtasks('grunt-contrib-watch'); grunt.loadnpmtasks('grunt-contrib-less'); grunt.loadnpmtasks('grunt-contrib-compass'); grunt.loadnpmtasks('grunt-contrib-concat'); grunt.loadnpmtasks('grunt-contrib-cssmin'); grunt.loadnpmtasks('grunt-contrib-uglify'); grunt.loadnpmtasks('grunt-contrib-copy'); grunt.loadnpmtasks('grunt-contrib-clean'); grunt.registertask('default', ['watch']); grunt.registertask( 'build', 'compiles assets , copies files build directory.', ['less', 'compass', 'cssmin', 'concat', 'uglify', 'copy', 'clean'] ); };
here i'm trying in config.
if file.file?( './.nosasscache' ) asset_cache_buster = :none cache = false # uncomment disable cache. end
setting cache = false
in config.rb
should enough. try disabling caching:
asset_cache_buster = :none cache = false
if doesn't work run clean remove folder.(see link)
Comments
Post a Comment