I didn't catch this, sorry for the late reply. Sass files added via the additionalData config option will not be made available to your JavaScript context even if you :exportyour sass variables. In order to inject variables in the JavaScript context, you need to explicitly import the sass file that declares and exports them.
// _variables.scss// this file is added via the additionalData loader option in vue.config.js$lyrics:'if you believe';:export{lyrics:unquote($lyrics);}
I didn't catch this, sorry for the late reply. Sass files added via the
additionalData
config option will not be made available to your JavaScript context even if you:export
your sass variables. In order to inject variables in the JavaScript context, you need to explicitly import the sass file that declares and exports them.You may need to set
css.requireModuleExtension
tofalse
in yourvue.config.js
.