I’m constantly modifying my application’s code, yet the full build process using ‘npm run build’ slows me down considerably. Is there an alternative similar to ‘npm run dev’ that can update my project instantly? I tried a method that only refreshed the CSS of an extension, but it didn’t apply changes to the main code or improve functionality. Has anyone discovered an effective solution to enable live updates without resorting to a complete rebuild?
I encountered a similar issue and switched to a lighter development bundler which offered faster updates during development. I migrated my project to Vite instead of relying solely on npm scripts for building. This approach provided near-instant refreshes without always needing a full rebuild. While it required some adjustments to my configuration, including reworking certain plugins and settings, the overall experience was significantly smoother, especially during heavy code modifications. It might be beneficial to consider alternative bundlers or tweaking the settings in your current build tool to better suit your development workflow.
try using webpack’s hot module replacment. it only update the changed files, skipping full builds. might need tweaking to your config, tho. works pretty well for me.