We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57ae2d9 commit e318082Copy full SHA for e318082
1 file changed
src/lib/converter.js
@@ -10,7 +10,7 @@ var watchPromisesChain = Promise.resolve();
10
11
function convert(logger, projectDir, appDir, options) {
12
options = options || {};
13
- var sassPath = getSassPath();
+ var sassPath = getSassPath(logger);
14
var data = {
15
sassPath,
16
projectDir,
@@ -48,12 +48,10 @@ function createWatcher(data) {
48
});
49
}
50
51
-function getSassPath() {
+function getSassPath(logger) {
52
var sassPath = require.resolve('node-sass/bin/node-sass');
53
if (fs.existsSync(sassPath)) {
54
- try {
55
- logger.info('Found peer node-sass');
56
- } catch (err) { }
+ logger.info('Found peer node-sass');
57
} else {
58
throw new Error('node-sass installation local to project was not found. Install by executing `npm install node-sass`.');
59
0 commit comments