arc-webpack

<a href="https://www.ebay.com"> <img src="https://img.shields.io/badge/ebay-open%20source-01d5c2.svg" alt="ebay open source"/> </a> <a href="https://img.shields.io/github/license/eBay/arc.svg"> <img src="https://img.shields.io/github/license/eBay/ar

Usage no npm install needed!

<script type="module">
  import arcWebpack from 'https://cdn.skypack.dev/arc-webpack';
</script>

README

arc-webpack

ebay open source MIT licensed travisci build Codecov npm version downloads

Example

Bundle for desktop

import webpack from 'webpack';
import AdaptivePlugin from 'arc-webpack';

let compiler = webpack({
  // ...
  plugins: [
      new AdaptivePlugin({ flags: { desktop: true } })
  ]
});

Bundle for node.js server

import webpack from 'webpack';
import AdaptivePlugin from 'arc-webpack';

let compiler = webpack({
  target: 'async-node',
  // ...
  plugins: [
    new AdaptivePlugin({ proxy: true })
  ]
});