Do we need live reload feature in bunders? Couldn’t we just use this extension for Visual Studio Code or simular features and extensions in other IDEs which will execute a custom command of your choice when you save a file with a certain file extension in your IDE?
https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave
This extensions allows you to customize the commands to execute in saving a file in your global VSCode settings and in the VSCode workspace settings .vscode/settings.json
, allowing others to use the same configuration in group projects.
Lightning CSS does not have a live reload feature and the live reload feature in Rollup cannot handle watching many files, however using this extension in VSCode, will not watch files but run the npm run dev:css
or npm run dev:js
command when saving a css or js file without watching for files to change.
One downside I see with this is when working on a project with others who are using different IDEs that do not support this feature. Besides that, is there any downsides to this approach?
I’m not a JS user, I was just surprised that bundlers were so bad