What is the process for setting a CSS background in vue-cli 3? I have set my vue.config.js like this. Is publicPath properly configured?
JavaScript
const path = require("path");
module.exports = {
devServer: {
port: 8081,
overlay: {
warnings: true,
errors: true
}
},
publicPath: "./"
};
CSS
button.close {
background: url(/src/style/images/close.png);
font-size: 0px;
border: 0px;
width: 20px;
height: 20px;
&.modal {
position: absolute;
top: 2px;
left: -38px;
box-shadow: none;
}
}
Project directory structure