Artful Tab is a browser extension that shows art from all over the world on the new New Tab page. Discover a new curated artwork from Wikimedia Commons every 24 hours. Get artist details and artwork information sourced from Wikidata.
The extension manifest is defined in src/manifest.js
and used in the vite config.
The popup and newTab entry points exist in the src/entries
directory.
Otherwise, the project functions just like a regular Vite project.
To switch between Manifest V2 and Manifest V3 builds, change the MANIFEST_VERSION
variable in vite.config.js
.
Refer to @samrum/vite-plugin-web-extension for more usage notes.
npm install
Hot Module Reloading is used to load changes inline without requiring extension rebuilds and extension/page reloads Currently only works in Chromium based browsers.
npm run dev
Rebuilds extension on file changes. Requires a reload of the extension (and page reload if using content scripts)
npm run watch
Minifies and optimizes extension build
npm run build
Loads the contents of the dist directory into the specified browser
npm run serve:chrome
npm run serve:firefox
When you want to create a new release, follow these steps:
git commit -am v1.2.3
)git tag v1.2.3
). Make sure your tag name's format is v*.*.*
The workflow will use this tag to detect when to create a releasegit push && git push --tags
)After building successfully, the action will publish the release artifacts in a new release draft that will be created on GitHub.