Reputation: 1
Is there a way to use variables when importing partials using SASS? Something like the following:
$version = 'MDB-4.5.14';
@import "core/" + $version + "/bootstrap/functions";
I will have multiple themes that will import portions of MDB and I don't want to have to updated all of the paths for each client every time I updated MDB.
Upvotes: 0
Views: 1017
Reputation: 637
I’ve had a similar need, and when I researched in the past the answer was always the same, “it’s not possible”. The question was posed more than 7 years ago on Github and I don’t think variables in the import path has ever been implemented as part of SASS. https://github.com/sass/sass/issues/279
Upvotes: 1