Skip to content

Commit

Permalink
only infer scss/sass loader when no explicit loaders have been specif…
Browse files Browse the repository at this point in the history
…ied (fix #790)
  • Loading branch information
yyx990803 committed Apr 27, 2017
1 parent 35229b0 commit c6882f1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,13 @@ module.exports = function (content) {
scoped: !!scoped,
hasInlineConfig: !!query.postcss
}) + '!'
// normalize scss/sass
if (lang === 'sass') {
lang = 'sass?indentedSyntax'
} else if (lang === 'scss') {
lang = 'sass'
// normalize scss/sass if no specific loaders have been provided
if (!loaders[lang]) {
if (lang === 'sass') {
lang = 'sass?indentedSyntax'
} else if (lang === 'scss') {
lang = 'sass'
}
}
}

Expand Down

0 comments on commit c6882f1

Please sign in to comment.