I am trying to create pre-build script for my Nuxt app.
So I have chosen defining build:before hook in nuxt.config.ts. The reason is copying files from mother dest. How can I only run this hook in development mode (npm run dev)? import.meta.dev is undefined there.