Cue
Navigate to component in VSC
Regarding intellisense, there’s many reasons why things stop working or appear not to work, from a mixture of regen of type definitions, to Volar being temperamental. It’s why I also have vscode shortcut to reload the window because I find myself doing this often.
8 replies
`#shared` types. Failed to resolve extends base type.
I've run into this issue since this feature was first released. Hard to tell if this is a bug or a known limitation of vue. However, for now, I'm just importing these directly from
'#shared'
10 replies
Question about image tag and svgs in production
For example, I often put CSS files in there, and add those files to the nuxt config. Those files may also reference images for backgrounds, fonts, so on. There may be static images I’m using like a logo, etc.
15 replies
Question about image tag and svgs in production
Common media, images and font types that you’re explicitly referencing, otherwise referred to as static assets. That is, using the
~/assets/**/[file].[ext]
syntax in their expected locations such as an images src attribute, a url CSS directive, so on.15 replies
Question about image tag and svgs in production
If you want to load dynamically, and you know those files will exist, then public is exactly where you want to place them.
Importing assets isn’t hacky. It’s hinting to the bundler what files you’re going to be using ahead of time, because bundlers do not evaluate your dynamic URL therefore has no idea what combinations you’re going to throw at it. This is all avoidable with public files.
15 replies