Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions dash_vite_plugin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,16 +345,10 @@ def init(self) -> Self:
if self.is_cli:
logger.info('⚙️ Creating index.html file...')

if not os.path.exists(self.index_html_path):
if self.is_cli:
logger.info(
f'🔍 index.html file {self.index_html_path} not found. Creating default index.html file...'
)

self.create_default_index_html()
self.create_default_index_html()

if self.is_cli:
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}')

if not self._check_npm_init():
init_cmd = [self.npm_path, 'init', '-y']
Expand Down
Loading