Skip to content

Commit

Permalink
Fix #167
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Oct 25, 2015
1 parent b06b6be commit d3ef855
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,14 @@ function getImportsToResolve(originalImport) {
return [originalImport];
}
}
if (ext) {
if (ext === '.scss' || ext === '.sass') {
add(basename);
}/* else {
Leave unknown extensions (like .css) untouched
}*/

// We can't just check for ext being defined because ext can also be something like '.datepicker'
// when the true extension is omitted and the filename contains a dot.
// @see https://github.com/jtangelder/sass-loader/issues/167
if (ext === '.css') {
// do not import css files
} else if (ext === '.scss' || ext === '.sass') {
add(basename);
} else {
if (!startsWithUnderscore) {
// Prefer modules starting with '_' first
Expand Down

0 comments on commit d3ef855

Please sign in to comment.