2021. 8. 16.

using app_vue variable in scss file

 VUEJS 2.x

## vue.config.js

css: {
loaderOptions: {
sass: {
perpendData: `
$VAR_NAME: "
${VUE_APP_MY_VAR1}" ;
`;
}
}
}


### in scss
  att:  $VUE_APP_MY_VAR1 + "my.png"

댓글 없음:

댓글 쓰기