A minimalistic web extension for firefox that suspends natively (with tabs.discard) not-active tabs.
A not-so-minimalistic web extension for Firefox that suspends natively (with tabs.discard) not-active tabs.
Install node and npm
In the project directory run make install
In the project directory run one of these commands:
make build-dev
to build for development
make build-prod
to build for production
make pack
to build production version and pack it with web-ext
Building has been tested with:
Install node and npm
Int the project directory run npm run install
In the project directory run one of these commands:
npm run build-dev
to build for development
npm run build-prod
to build for production
npm run pack
to build production version and pack it with web-ext
Building has been tested with:
For verification and calculating diffs with submitted addon, use Windows configuration. On Linux and MacOS systems diff will fail because of line endings difference affecting webpack hash generation. Or use diff with --strip-trailing-cr on .html and .js files.
To monitor changes in browser with hot-reloading you can do
npm run watch
or make watch
to start rebuilding dist on every save in src directory. This is achieved via running webpack and web-ext both in watch mode with concurrently npm package. You can load extension in browser with npm run browser
or make browser
.npm run browser
once after first build-dev and then run build-dev on each change you want to inspect.The extension uses i18n, so if you want to participate in translating the extension texts into your language, please, refer to messages.json as an example and either create a pull request or create an issue on github. Note, that only "messages" properties needs to be translated, "descriptions" are aimed to help translators.
If you find a problem, please, create an issue.