How to view package version in nuxt
// nuxt.config.ts
runtimeConfig: {
public: {
clientVersion: pkg.version,
},
},
// component
<p>Version: {{ $config.public.clientVersion }}</p>
Search
Jan 15, 2024
// nuxt.config.ts
runtimeConfig: {
public: {
clientVersion: pkg.version,
},
},
// component
<p>Version: {{ $config.public.clientVersion }}</p>