danielwaltz / vite-plugin-graphql-codegen

Zero-config vite plugin that uses the vite file watcher to run graphql codegen programmatically without needing to start a separate watcher
https://www.npmjs.com/package/vite-plugin-graphql-codegen
MIT License
83 stars 8 forks source link

Can't disable in `development` mode #17

Closed 6XGate closed 1 year ago

6XGate commented 1 year ago

The runOnStart being set to false will not prevent the plug-in from running in dev server module. This seems to be because the mode check with env.mode does not check for development.

6XGate commented 1 year ago

Sorry, wrong plug-in