Skip to content

Commit 4f3c9e5

Browse files
committed
Inject SCSS variables in vue files.
1 parent a8c7372 commit 4f3c9e5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vue.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,12 @@ module.exports = {
1818
options.compilerOptions.whitespace = 'preserve'
1919
return options
2020
})
21+
},
22+
css: {
23+
loaderOptions: {
24+
scss: {
25+
additionalData: '@import "@/scss/_variables.scss";'
26+
}
27+
}
2128
}
2229
}

0 commit comments

Comments
 (0)