Skip to content

Commit 597f12e

Browse files
committed
chore(dist): updating distributables to version 0.10.8
1 parent eb28f5f commit 597f12e

File tree

6 files changed

+68
-58
lines changed

6 files changed

+68
-58
lines changed

dist/file-size.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"compressed": "2 KB"
55
},
66
"dist/sass.sync.js": {
7-
"normal": "3401 KB",
8-
"compressed": "698 KB"
7+
"normal": "3408 KB",
8+
"compressed": "701 KB"
99
},
1010
"dist/sass.worker.js": {
11-
"normal": "3401 KB",
12-
"compressed": "698 KB"
11+
"normal": "3409 KB",
12+
"compressed": "701 KB"
1313
}
1414
}

dist/sass.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/*! sass.js - v0.10.7 (ae544a4) - built 2017-11-14
2-
providing libsass 3.4.7 (c943792a)
1+
/*! sass.js - v0.10.8 (eb28f5f) - built 2018-01-21
2+
providing libsass 3.4.8 (a1f13edf)
33
via emscripten 1.37.0 ()
44
*/
55

dist/sass.node.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/*! sass.js - v0.10.7 (ae544a4) - built 2017-11-14
2-
providing libsass 3.4.7 (c943792a)
1+
/*! sass.js - v0.10.8 (eb28f5f) - built 2018-01-21
2+
providing libsass 3.4.8 (a1f13edf)
33
via emscripten 1.37.0 ()
44
*/
55
var Sass = require('./sass.sync.js');
@@ -11,6 +11,10 @@ function fileExists(path) {
1111
return stat && stat.isFile();
1212
}
1313

14+
function removeFileExtension(path) {
15+
return path.slice(0, path.lastIndexOf('.'));
16+
}
17+
1418
function importFileToSass(path, done) {
1519
// any path must be relative to CWD to work in both environments (real FS, and emscripten FS)
1620
var requestedPath = './' + path;
@@ -24,13 +28,19 @@ function importFileToSass(path, done) {
2428
return;
2529
}
2630

31+
// Make sure to omit the ".css" file extension when it was omitted in requestedPath.
32+
// This allow raw css imports.
33+
// see https://github.com/sass/libsass/pull/754
34+
var isRawCss = !requestedPath.endsWith('.css') && filesystemPath.endsWith('.css');
35+
var targetPath = isRawCss ? removeFileExtension(filesystemPath) : filesystemPath;
36+
2737
// write the file to emscripten FS so libsass internal FS handling
2838
// can engage the scss/sass switch, which apparently does not happen
2939
// for content provided through the importer callback directly
3040
var content = fs.readFileSync(filesystemPath, {encoding: 'utf8'});
3141
Sass.writeFile(filesystemPath, content, function() {
3242
done({
33-
path: filesystemPath,
43+
path: targetPath,
3444
});
3545
});
3646
}

dist/sass.sync.js

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sass.worker.js

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/versions.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"commit": null
55
},
66
"libsass": {
7-
"version": "3.4.7",
8-
"commit": "c943792a"
7+
"version": "3.4.8",
8+
"commit": "a1f13edf"
99
},
1010
"sassjs": {
11-
"version": "0.10.7",
12-
"commit": "ae544a4",
13-
"branch": "master"
11+
"version": "0.10.8",
12+
"commit": "eb28f5f",
13+
"branch": "upgrade-libsass-3.4.8"
1414
}
1515
}

0 commit comments

Comments
 (0)