Skip to content

Commit c6882f1

Browse files
committed
only infer scss/sass loader when no explicit loaders have been specified (fix #790)
1 parent 35229b0 commit c6882f1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/loader.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,13 @@ module.exports = function (content) {
203203
scoped: !!scoped,
204204
hasInlineConfig: !!query.postcss
205205
}) + '!'
206-
// normalize scss/sass
207-
if (lang === 'sass') {
208-
lang = 'sass?indentedSyntax'
209-
} else if (lang === 'scss') {
210-
lang = 'sass'
206+
// normalize scss/sass if no specific loaders have been provided
207+
if (!loaders[lang]) {
208+
if (lang === 'sass') {
209+
lang = 'sass?indentedSyntax'
210+
} else if (lang === 'scss') {
211+
lang = 'sass'
212+
}
211213
}
212214
}
213215

0 commit comments

Comments
 (0)