Alejandro Mery
Alejandro Mery
Explore posts from servers
NNuxt
Created by Alejandro Mery on 2/2/2025 in #❓・help
path to dependency
I added a function to the vue components library to expose it's own path, and it seems to work.
/** @returns the directory path to the `@poupe/vue` package */
export const contentPath = () => dirname(new URL(import.meta.url).pathname);

/** @returns the glob patterns needed by tailwindcss to scan classes */
export const contentGlobs = (): string[] => {
const path = contentPath();
return [
`${path}/index.mjs`,
`${path}/**/*.vue`,
];
};
/** @returns the directory path to the `@poupe/vue` package */
export const contentPath = () => dirname(new URL(import.meta.url).pathname);

/** @returns the glob patterns needed by tailwindcss to scan classes */
export const contentGlobs = (): string[] => {
const path = contentPath();
return [
`${path}/index.mjs`,
`${path}/**/*.vue`,
];
};
9 replies
NNuxt
Created by Alejandro Mery on 2/2/2025 in #❓・help
path to dependency
it gets installed, sure, but tailwindcss needs the path to the components in the generated config file, to scan them
9 replies
NNuxt
Created by Alejandro Mery on 2/2/2025 in #❓・help
path to dependency
using the resolver created by @nuxt/kit I get a path that assumes 'your-dependency-name' is a file within the dist/ of the current package, not to the dist of the dependency
9 replies
NNuxt
Created by Alejandro Mery on 12/29/2024 in #❓・help
reactive css variables
5 replies
NNuxt
Created by Thomas on 12/27/2024 in #❓・help
Why can't VS Code read this json file?
that happens when .nuxt hasn't been created yet
6 replies
NNuxt
Created by Alejandro Mery on 9/20/2024 in #❓・help
@nuxt/fonts + tailwindcss - use only local cache
disabling local fallbacks solved it.
--- a/web/client/nuxt.config.ts
+++ b/web/client/nuxt.config.ts
@@ -43,6 +43,9 @@ export default defineNuxtConfig({
assets: {
prefix: '/_fonts',
},
+ experimental: {
+ disableLocalFallbacks: true,
+ },
},

routeRules: {
--- a/web/client/nuxt.config.ts
+++ b/web/client/nuxt.config.ts
@@ -43,6 +43,9 @@ export default defineNuxtConfig({
assets: {
prefix: '/_fonts',
},
+ experimental: {
+ disableLocalFallbacks: true,
+ },
},

routeRules: {
2 replies