diff --git a/README.md b/README.md index 963206a..c1cc728 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,14 @@ Then run the following: - Load the extension via `opera:extensions` - Check the `Developer Mode` and load as unpacked from extension’s extracted directory. + +### Production + +- `yarn run build` builds the extension for all the browsers to `extension/BROWSER` directory respectively. + +Note: By default the `manifest.json` is set with version `0.0.0`. The webpack loader will update the version in the build with that of the `package.json` version. In order to release a new version, update version in `package.json` and run script. + +If you don't want to use `package.json` version, you can disable the option [here](https://github.com/abhijithvijayan/web-extension-starter/blob/e10158c4a49948dea9fdca06592876d9ca04e028/webpack.config.js#L79). ### Generating browser specific manifest.json Update `source/manifest.json` file with browser vendor prefixed manifest keys @@ -132,10 +140,6 @@ if the vendor is `chrome` or `opera`, this compiles to: See the original [README](https://github.com/abhijithvijayan/wext-manifest-loader) of `wext-manifest-loader` package for more details -### Production - -- `yarn run build` builds the extension for all the browsers to `extension/BROWSER` directory respectively. - ## Show your support Give a ⭐️ if this project helped you!