-
-
Notifications
You must be signed in to change notification settings - Fork 77
Recompiles all sass files with every build even if unchanged #111
Comments
We are setting the mtimes specifically, but it doesn't seem to be working exactly right. Can you explain the method Sass uses to cache more in depth? |
Taking the opportunity... I am using See the output using body{
background-image: url('../../../../../../../Users/lagden/web/tex/nimble/dev/images/bg-2.jpg?1404357523');
} Well... there is my task gulp.task 'sass', ->
gulp.src 'sass/{,*/}*.sass'
.pipe sass
trace : true
unixNewlines : true
compass : true
noCache : true
.pipe prefix AUTOPREFIXER_BROWSERS
.pipe gulp.dest 'dev/dest'
.pipe filter 'dev/dest/*.css'
.pipe reload stream: true Now, I am using gulp.task 'compile', ->
gulp.src 'sass/screen.sass', buffer: false
.pipe spawn
cmd: 'sass'
args: [
'--trace'
'--no-cache'
'--compass'
'sass/screen.sass'
'dev/css/screen.css'
]
.pipe gulp.dest 'dev/css' My config.rb require 'compass/import-once/activate'
require 'bootstrap-sass'
project_type = :stand_alone
environment = :development
http_path = './'
sass_dir = "./sass"
css_dir = "./dev/css"
fonts_dir = "./dev/fonts"
images_dir = "./dev/images"
javascripts_dir = "./dev/js"
relative_assets = true
preferred_syntax = :sass Maybe be a bug or maybe is missing setting some property correctly... Help? |
Please keep the issues on topic. @lagden We still have some issues with sourcemap paths. My proposal to make the 1.0 version of this plugin a vinyl file source would make it similar to spawning, but would output into a gulp stream. If you have questions about the sourcemap issue please find an issue about sourcemaps and comment there, or open a new issue. @lilgast8 The problem is Sass 3.4, sourcemaps, and the rename task. See the comment here for a fix: #113 (comment) |
Implementing the suggestion in #110 (comment) will get us closer to solving this problem. |
I see two paths to fix this.
I'm leaning towards 1. Opinions welcome. |
@robwierzbowski I left the |
I like to be able to disable sass caching in my gulp-ruby-sass task. I use Sublime Text's GoTo Anything shortcut to search for files in my project and sass cache pollutes my file structure with similarly named .scss files. That said, for larger projects with several large files, reducing compile time with incremental builds is more important that being able to disable sass caching. |
If you use Sublime Text's Project feature, you can exclude the .sass-cache folder from the project. |
Fixed, will be released in 2.0. |
Fixed with #260. |
By default, the sass
--update
command will only recompile those sass files which are newer (or have a dependency that is newer) than the output css file. However, it seems like the temp directories being used cause this to not work. Can you think of some way to preserve the optimized rebuild that sass usually performs (maybe copy the prebuilt css files to the temp output directory and set mtimes explicitly on them?), it can save a lot of time on large sass projects.The text was updated successfully, but these errors were encountered: