From 0f10faf0d4e465155e10a330e3b5a7747a15b30d Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:01:38 +1100 Subject: [PATCH] build(ui): do not fail build on eslint error in dev mode --- invokeai/frontend/web/vite.config.mts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/invokeai/frontend/web/vite.config.mts b/invokeai/frontend/web/vite.config.mts index ae64b7198d..21edc076db 100644 --- a/invokeai/frontend/web/vite.config.mts +++ b/invokeai/frontend/web/vite.config.mts @@ -57,7 +57,12 @@ export default defineConfig(({ mode }) => { return { base: './', - plugins: [react(), mode !== 'test' && eslint(), tsconfigPaths(), visualizer() as unknown as PluginOption], + plugins: [ + react(), + mode !== 'test' && eslint({ failOnError: mode === 'production', failOnWarning: mode === 'production' }), + tsconfigPaths(), + visualizer() as unknown as PluginOption, + ], build: { chunkSizeWarningLimit: 1500, },