This script automates tab switching and refreshing in Firefox Developer Edition on Linux Ubuntu.
It integrates with Webpack DevServer to reload the correct tab when the development server starts.
- Uses
xdotoolto search for tabs and activate them. - Automatically refreshes the Webpack tab if found.
- Falls back to opening a new browser tab if necessary.
- Linux Ubuntu
- Firefox Developer Edition
xdotoolinstalled (sudo apt install xdotool)
- Clone this Gist or copy the scripts into your project.
- Ensure
xdotoolis installed. - Update your
webpack.config.jsto include the middleware. - Run your Webpack DevServer and let the script handle tab management.
Happy coding! 🚀