Skip to content

Commit 055bea8

Browse files
committed
Update node-sass to a 3.0.0 beta.
Especially to not have to deal with sass/node-sass#698, but might contain other fixes to importers, too. Let's see and revert if there's bork.
1 parent c6f2a00 commit 055bea8

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

node-sass.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var fs = require('fs');
22
var path = require('path');
33

44
// @see https://www.npmjs.com/package/node-sass#importer-v2-0-0-experimental
5-
// @see https://github.com/sass/node-sass/issues/671 (random console.log(), which is why can't really use --stdout)
65
module.exports = function(url, prev, done) {
76
var expectedExtension = path.extname(url) === '' ? path.extname(prev) : ''; // if the import had an extension (e.g. ".scss"), use that; if not, use the extension of the importing file
87
var next = path.join(path.dirname(prev), url + expectedExtension); // construct import path relative to current file // TODO: Solve https://github.com/sass/node-sass/issues/762

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"browserify": "9.0.8",
1010
"classnames": "1.2.1",
1111
"mocha": "2.2.4",
12-
"node-sass": "2.1.1",
12+
"node-sass": "3.0.0-beta.7",
1313
"react": "0.13.2",
1414
"reactify": "1.1.0"
1515
},

test/cases/node-sass/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/cases/node-sass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"scripts": {
3-
"test": "node-sass --importer=$(pwd)/node_modules/component-css-ns/node-sass.js entrypoint.scss > /dev/null 2>&1 && cat entrypoint.css"
3+
"test": "cat entrypoint.scss | node-sass --importer=$(pwd)/node_modules/component-css-ns/node-sass"
44
}
55
}

0 commit comments

Comments
 (0)