image code snippet code example
Example 1: snippets iamge by cod
.icon {
background: url(~@/img/icon.png);
/* parse to path: ${rootDir}/src/img/icon.png */
/* and return snippets below */
}
Example 2: snippets iamge by cod
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}