I am currently using simple-webpack vuecli to build my website. I have a button with a :after pseudo-element that generates content with a background image url. Is there a way to utilize the require
function for the background-url in CSS? It seems like inline styling is not working for the :after pseudo-element.
Global SCSS
.btn-green .btn-text:after{
content: "";
width: 7px;
height: 10px;
background: url('/assets/img/svg/arrow-right.svg') no-repeat 0 0;
background-size: 100%;
display: inline-block;
margin-left: 5px;
padding-bottom: 11px;
}
Vue Template
<div class="btn-green universal-shadow">
<div class="btn-text">GET STARTED</div>
</div>