We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 265db80 commit edb7e74Copy full SHA for edb7e74
1 file changed
dash_vite_plugin/utils.py
@@ -345,16 +345,10 @@ def init(self) -> Self:
345
if self.is_cli:
346
logger.info('⚙️ Creating index.html file...')
347
348
- if not os.path.exists(self.index_html_path):
349
- if self.is_cli:
350
- logger.info(
351
- f'🔍 index.html file {self.index_html_path} not found. Creating default index.html file...'
352
- )
353
-
354
- self.create_default_index_html()
+ self.create_default_index_html()
355
356
357
- logger.info(f'💾 Default index.html file created at: {self.index_html_path}')
+ if self.is_cli:
+ logger.info(f'💾 Default index.html file created at: {self.index_html_path}')
358
359
if not self._check_npm_init():
360
init_cmd = [self.npm_path, 'init', '-y']
0 commit comments