We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b413156 commit c33bba7Copy full SHA for c33bba7
1 file changed
src/utils/debugLog.ts
@@ -1,4 +1,10 @@
1
+const RESET = '\x1b[0m';
2
+const BRIGHT = '\x1b[1m';
3
+const DIM = '\x1b[2m';
4
+const FG_CYAN = '\x1b[36m';
5
+
6
export function debugLog(...args: unknown[]) {
- const LOG_PREFIX = '\x1b[36m[vite-plugin-graphql-codegen]\x1b[0m' as const;
- console.log(LOG_PREFIX, ...args);
7
+ const LOG_PREFIX =
8
+ ` ${FG_CYAN}${BRIGHT}VITE PLUGIN GRAPHQL CODEGEN${RESET} ` as const;
9
+ console.log(LOG_PREFIX, DIM, ...args, RESET);
10
}
0 commit comments