Skip to content

Commit f383430

Browse files
author
Rena Holmgren
committed
fix: include user-defined css loader options (#130)
fixes vuetifyjs/vue-cli-plugins#128
1 parent a01cb11 commit f383430

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

util/helpers.js

+5
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,14 @@ function mergeRules (api, opt, ext) {
5050
sassLoaderVersion = semver.major(require('sass-loader/package.json').version)
5151
} catch (e) {}
5252

53+
// Merge with user-defined loader data config
5354
if (sassLoaderVersion < 8) {
55+
if (opt.data) data.unshift(opt.data)
56+
5457
opt.data = data.join('\n')
5558
} else {
59+
if (opt.prependData) data.unshift(opt.prependData)
60+
5661
opt.prependData = data.join('\n')
5762
}
5863

0 commit comments

Comments
 (0)