@@ -52,15 +52,7 @@ that are worth explaining.
52
52
Compass provides a function called ` absolute-path ` that will turn any
53
53
path relative to the sass file it is called from into an absolute path.
54
54
In order to make your stylesheets work on both windows and unix-based
55
- var gulp = require('gulp');
56
- var sass = require('gulp-ruby-sass');
57
-
58
- gulp.task('default', function () {
59
- return gulp.src('src/scss/app.scss')
60
- .pipe(sass({sourcemap: true, sourcemapPath: '../scss'}))
61
- .on('error', function (err) { console.log(err.message); })
62
- .pipe(gulp.dest('dist/css'));
63
- });operating systems, you should use the ` join-file-segments ` function
55
+ operating systems, you should use the ` join-file-segments ` function
64
56
instead of a file separator.
65
57
66
58
For example. If your configuration partial was stored in a subdirectory
@@ -80,7 +72,12 @@ accepts and should return depends on the particular configuration
80
72
property. For example:
81
73
82
74
@function my-cache-buster($url, $file) {
83
- @return (query: "h=#{md5sum($file)}");
75
+ $hash: md5sum($file);
76
+ @if $hash {
77
+ @return (query: "h=#{$hash}");
78
+ } @else {
79
+ @return null;
80
+ }
84
81
}
85
82
86
83
@include compass-configuration($asset-cache-buster: my-cache-buster);
@@ -98,7 +95,7 @@ should be imported into every Sass file that is to be used with Compass.
98
95
$project-path: absolute-path("..");
99
96
100
97
The global ` $project-path ` must be set to an absolute path to the
101
- directory of the` project. This global is used to initial compass
98
+ directory of the project. This global is used to initial compass
102
99
when importing ` compass/configuration ` .
103
100
104
101
$debug-configuration: true;
0 commit comments