First, you must have classic yarn installed.
✨ New: bundle-extension.js
now bundles and zips everything. Run yarn && yarn bundle
at the root directory and you'll get a bundle directory that looks like this:
📂 bundle
└ 📁 chrome
└ 📁 firefox
└ 📁 safari
└ 📄 chrome.zip
└ 📄 firefox.zip
└ 📄 safari.zip
cd next-popup
yarn # must run yarn once first before you can build
yarn build # to build and export Next.js app
yarn build:linux # to build and export Next.js app on Linux environment
We also use parcel to build the content_scripts
for the extension.
cd content-scripts
yarn # must run yarn once first before you can build
yarn build # to build the content_scripts
yarn watch # watch for changes and build automatically
After you have built both popup
and content-scripts
you can bundle the extension for Chrome
, Firefox
, and Safari
:
cd .. # go back to the root directory
yarn # must run yarn once first before you can bundle
yarn bundle # Runs the `bundle-extension.js` script
Chrome or Edge | Firefox | Safari |
---|---|---|
|
|
|