npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

webpack-run-edge-extension

v1.3.1

Published

Run your extension on Microsoft Edge with auto-reload support

Downloads

267

Readme

webpack-run-edge-extension workflow npm

Run your browser extension on Edge with zero-config auto-reload support

Opens up a new Edge instance with an extension loaded. Resources declared in manifest.json are auto-reloaded by default, including JavaScript and CSS declared in Manifest HTML pages. This plugin accepts all flags Edge does (see browserFlags) and loads on a clean profile by default.

Highlights

  • Zero-config auto-reload for virtually everything including all HTML overrides, and every resource you plan to require via <script> and <link> in manifest declared HTML pages.
  • Fresh profile with developer mode enabled by default on every run. (customizable)
  • Opens the handy "edge://extensions" by default for fast debugging.
  • Uses the system browser instead of fully downloading Edge. (accepts Canary builds)
  • Closing the webpack process instantly kills all child processes. No extra steps to open/close Edge.
  • Supports virtually all Edge flags.

See it in action

git clone [email protected]:cezaraugusto/webpack-run-edge-extension.git
cd webpack-run-edge-extension && yarn install
yarn demo

Usage

yarn add webpack-run-edge-extension --save-dev

If you want to watch for file changes in your extension, watch mode must be enabled.

// webpack config file
+ const RunEdgeExtension = require('webpack-run-edge-extension')

module.exports {
+  watch: true,
  plugins: [
+   new RunEdgeExtension({
+     extensionPath: 'path/to/extension'
+   })
  ]
}

Lazy sample

const RunEdgeExtension = require('webpack-run-edge-extension')

new RunEdgeExtension({
  extensionPath: 'path/to/extension/dir', // Only required field
  browserFlags: [
    '--enable-experimental-extension-apis',
    '--embedded-extension-options'
  ],
  userDataDir: 'path/to/user/data/dir',
  startingUrl: 'https://example.com',
  autoReload: true,
  port: 8081
})

API

new RunEdgeExtension(options)

Options

extensionPath (required)

Type: string

Path to your extension. Must point to the same directory as the manifest file.

browserFlags (optional)

Type: Array<string>

Additional flags to pass to Edge. Defaults to these flags.

For a full list of available flags, see https://peter.sh/experiments/chromium-command-line-switches/.

userDataDir (optional)

Type: string | boolean

What Edge profile path to use. A boolean value of false sets the profile to the default user profile. Defaults to a fresh Edge profile.

startingUrl (optional)

Type: string

What URL to start the browser with. Defaults to about:blank

autoReload (optional)

Type: boolean

Whether to enable auto-reload on save. Defaults to true

port (optional)

Type: number

What port should run the extension reloader. Defaults to 8081

License

MIT (c) Cezar Augusto.