Open tobiasdiez opened 2 years ago
Thanks for your work, this looks nice! (By the way, it's good practice to mention the source if you copy & past code from somewhere).
@07akioni Do you prefer to have the nuxt module as part of the naive-ui repo, or do you prefer to move it to nuxt-community?
@tobiasdiez Thank you , I didn't quite understand what you mean. What do you mean by reference?
By the way, it's good practice to mention the source if you copy & past code from somewhere
if (nuxt.options.dev) {
nuxt.options.build.transpile.push('@juggle/resize-observer')
nuxt.options.vite.optimizeDeps?.include?.push(
'naive-ui',
'vueuc',
'date-fns-tz/esm/formatInTimeZone'
)
} else {
nuxt.options.build.transpile.push(
'naive-ui',
'vueuc',
'@css-render/vue3-ssr',
'@juggle/resize-observer'
)
}
We have been using this structure for a long time, but I copied this part because I saw your message here. Do I need to include the link of this code and the message here as a reference?
this is okay ?
Thanks for your work, this looks nice! (By the way, it's good practice to mention the source if you copy & past code from somewhere).
@07akioni Do you prefer to have the nuxt module as part of the naive-ui repo, or do you prefer to move it to nuxt-community?
I think make it inside naive-ui repo is a better choice.
Nuxt allows to bundle configuration changes and plugins into so-called modules: https://v3.nuxtjs.org/guide/going-further/modules/ Thus, instead of the manually work that is currently necessary, with a naive-ui nuxt module, one could simply have
The following is a first draft of such a module: