node
(v18.0.0
or later)
Install npm packages
npm install
First, run the development server:
npm run dev
Open your browser and load the appropriate development build. For example, if you are developing for the chrome browser, using manifest v3, use: build/chrome-mv3-dev
.
For further guidance, visit Plasmo documentation.
For Firefox
, run the following:
npm run build -- --target=firefox-mv2 --zip
For Chrome
, run the following:
npm run build -- --target=chrome-mv3 --zip
This should create a production bundle for your extension, ready to be zipped and published to the stores.