Skip to content

Commit

Permalink
Don't include .css imports in the graph by default (#91)
Browse files Browse the repository at this point in the history
* 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.

* Fix travis versions
  • Loading branch information
xzyfer committed Apr 16, 2018
1 parent 7cf7b72 commit 7fbc560
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
@@ -1,7 +1,8 @@
language: node_js
branches: [master]
node_js:
- "4"
- "6"
- "8"
- "lts/argon"
- "lts/boron"
- "lts/carbon"
- "9"
after_success: npm run coverage
9 changes: 7 additions & 2 deletions CHANGELOG.md
Expand Up @@ -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 (@realityking, #88)
- Don't add .css imports to the graph by default (@xzyfer, #91)

### Features

Expand All @@ -14,7 +15,11 @@ All notable changes to this project will be documented in this file.

### Dependencies

- yargs@^10.0.3
- yargs@^10.0.3 (@realityking, #88)
- chai@^4.1.2 (@realityking, #88)
- coveralls@^3.0.0 (@realityking, #88)
- mocha@^4.0.1 (@realityking, #88)
- nyc@^11.2.1 (@realityking, #88)

## [2.2.4]
### Dependencies
Expand Down
2 changes: 1 addition & 1 deletion bin/sassgraph
Expand Up @@ -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',
})
Expand Down
2 changes: 1 addition & 1 deletion sass-graph.js
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7fbc560

Please sign in to comment.