Browser extension project
Dependencies:
- node.js (12+)
- yarn
You can find installation instructions here
Usage
Development
yarn run compose
Runs docker containers with all dependencies (read how to set it up here)
Or you can specify all needed endpoints to services in .env
(for example on staging services) and use it without docker.
yarn start
Runs webpack in watch mode. Automatically reloads the page after changes in files.
After that you will have build
directory with unpacked extension. How to install unpacked extension see here
Production
yarn build
Builds the extension in production mode.
Default target is Chrome browser.
To switch between other browsers, add parameter --env.target=<TARGET_PLATFORM>
to specify browser platform. There're next supported platforms:
-
chrome
for Chrome browser (specified by default) -
mozilla
for Mozilla Firefox browser
Example build command:
TARGET=mozilla yarn build