From de987326c4e53b32e7afc25fb2db533f2806952b Mon Sep 17 00:00:00 2001 From: xzyfer Date: Mon, 16 Apr 2018 23:35:16 +1000 Subject: [PATCH] Don't include .css imports in the graph by default This non-standard behaviur has been removed from LibSass in 3.6.0, and Node Sass 5.0. --- CHANGELOG.md | 7 ++++++- bin/sassgraph | 2 +- sass-graph.js | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32eb6a3..add8db3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file. ## [next] ### BREAKING CHANGES -- Drop support for io.js and Node.js < 4. +- Drop support for io.js and Node.js < 4 +- Don't add .css imports to the graph by default ### Features @@ -15,6 +16,10 @@ All notable changes to this project will be documented in this file. ### Dependencies - yargs@^10.0.3 +- chai@^4.1.2 +- coveralls@^3.0.0 +- mocha@^4.0.1 +- nyc@^11.2.1 ## [2.2.4] ### Dependencies diff --git a/bin/sassgraph b/bin/sassgraph index 1bce279..2d39a5a 100755 --- a/bin/sassgraph +++ b/bin/sassgraph @@ -22,7 +22,7 @@ var yargs = require('yargs') .option('e', { alias: 'extensions', - default: ['scss', 'css', 'sass'], + default: ['scss', 'sass'], describe: 'File extensions to include in the graph', type: 'array', }) diff --git a/sass-graph.js b/sass-graph.js index a4a37d9..0d22050 100644 --- a/sass-graph.js +++ b/sass-graph.js @@ -134,7 +134,7 @@ Graph.prototype.visit = function(filepath, callback, edgeCallback, visited) { function processOptions(options) { return Object.assign({ loadPaths: [process.cwd()], - extensions: ['scss', 'css', 'sass'], + extensions: ['scss', 'sass'], }, options); }