Skip to content

Commit 09e7bb6

Browse files
committed
fix: avoid bootstrapping variables if user has not supplied any
improve compilation time when not using variables by ~20s on avg fixes #133
1 parent a9d6519 commit 09e7bb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

util/helpers.js

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ function mergeRules (api, opt, ext) {
4040

4141
addImports(api, 'variables', data, end)
4242

43+
// If user isn't supplying variables, avoid prepending data
44+
if (!data.length) return
45+
4346
// Inject Vuetify styles at the end of user supplied
4447
data.push(`@import '~vuetify/src/styles/styles.sass${end}`)
4548

0 commit comments

Comments
 (0)