web-component-tester-proxy

A minimal proxy plugin for web-component-tester

Usage no npm install needed!

<script type="module">
  import webComponentTesterProxy from 'https://cdn.skypack.dev/web-component-tester-proxy';
</script>

README

Web-Component-Tester-Proxy

A minimal proxy plugin for web-component-tester

Installation from a patched release 0.10.1

npm install --save-dev web-component-tester-proxy

Basic Usage

Add the following configuration to web-component-tester's config file.

Example

To proxy URLS starting with '/api' to the host:

module.exports = {
  plugins: {
    proxy: {
      routes: [
     '/api': 'http://myapi',
      ]
    }
  }
}

Options

Below are the available configuration options:

routes

An array with the routes.