How to use webextension-toolbox - 2 common examples

To help you get started, we’ve selected a few webextension-toolbox examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webextension-toolbox / webextension-toolbox / src / webpack-webextension-plugin / index.js View on Github external
async addClient (compilation) {
    if (this.autoreload && this.isWatching) {
      await this.compileClient(compilation)
      // Add client to extension. We will includes this
      // as a background script in the manifest.json later.
      compilation.assets['webextension-toolbox/client.js'] = this.client
    }
  }
github webextension-toolbox / webpack-webextension-plugin / index.js View on Github external
async addClient (compilation) {
    if (this.autoreload && this.isWatching) {
      await this.compileClient(compilation)
      // Add client to extension. We will includes this
      // as a background script in the manifest.json later.
      compilation.assets['webextension-toolbox/client.js'] = this.client
    }
  }

webextension-toolbox

Framework for WebExtensions (Firefox, Chrome, Opera, Edge)

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular webextension-toolbox functions

Similar packages