![]() For example, in and background: url(./logo.png), "./logo.png" is a relative asset path and will be resolved by Webpack as a module dependency.īecause logo.png is not JavaScript, when treated as a module dependency, we need to use url-loader and file-loader to process it. In *.vue components, all your templates and CSS are parsed by vue-html-loader and css-loader to look for asset URLs. We’ll first talk about using regular assets then we’ll see what the difference is for static assets. So let’s try to answer the question above. What is the difference between them? Some are static assets while the others are processed and embedded by the build system. You will notice in the project structure we have two directories for assets: /public/ and /src/assets/.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |