Kal
In nuxt, where to specify compile-time flags?
With a Vue+Vite app, you can specify some compile-time flags like below.
For instance, I never use Options API, and apparently disabling it saves ~10kb off your final build.
How can I do the same in Nuxt?
import { defineConfig } from 'vite'
export default defineConfig({
define: {
__VUE_OPTIONS_API__: 'false'
}
})
5 replies
How to get a rich text editor in Nuxt Content/Nuxt Studio
I'm not interested in markdown, instead I'd like a rich text HTML editor as you'd find in a regular CMS's.
Is this possible?
What about a Vue component that wraps a an editor? Is that what I should be doing?
5 replies
How to get page title globally when using useHead() ?
useHead() seems to be strongly recommended for setting page titles & other meta, great, it works... but how can I access the current page meta data globally, in any component? Previously I used some form of
{{ route.meta.title }}
to do so, however, route.meta doesn't seem to be affected by changes made with useHead(). Use cases: a global header component, or perhaps some kind of breadcrumb component living in a layout. I literally just need the current page title, anywhere.4 replies