NuxtN
Nuxt13mo ago
21 replies
Zyme

Custom scripts in command line?

Is it possible to create a custom script that I can run with "npm run"? It seems I can't access defineNuxtConfig during this approach with a normal TS file and TSX.

ReferenceError: defineNuxtConfig is not defined

I want a custom script I can run in the terminal that extends "npm run generate" so I can pass some arguments.
Was this page helpful?