stencil-cli
stencil-cli copied to clipboard
dist folder keeps getting removed
Expected behavior
the assets/dist
folder should update only when there's a change in the theme code.
Actual behavior
the assets/dist
folder should keeps getting removed and regenerated repeatedly even during the preview of the local setup. Sometimes a few files will go missing. Both situation throws error on the browser console, and my customized checkout and order confirmation pages stop executing totally.
Steps to reproduce behavior
Just use the stencil-cli to preview your local theme changes.
I am on Windows 10, using VS Code for editing.
@deepakmchetu I suspect that your IDE (VS Code) autosaves the code and updates the opened files even when you didn’t change them directly, e.g. when you just focused a file and then left the focus. Try to preview the files in a simple text editor that doesn’t autosave files; if the dist folder is not getting removed then as a workaround you can temporarily disable autosaving in VS Code
Though I think it would be a good idea to add a parameter to not watch for file changes in stencil start, kinda stencil start --watch false