# webpack-plugin-browser-json

> A webpack plugin that allows for an additional config file for browser dependencies.

Latest version **1.1.3** (published 2020-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-plugin-browser-json
pnpm add webpack-plugin-browser-json
yarn add webpack-plugin-browser-json
bun add webpack-plugin-browser-json
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2020-01-09 |
| First published | 2019-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 33.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dylan Piercey |
| Maintainers | dylanpiercey |
| Keywords | assets, browser.json, lasso, plugin, webpack |

## Links

- npm: https://www.npmjs.com/package/webpack-plugin-browser-json
- Repository: https://github.com/lasso-js/webpack-plugin-browser-json
- Issues: https://github.com/lasso-js/webpack-plugin-browser-json/issues
- npm.io page: https://npm.io/package/webpack-plugin-browser-json

## Dependencies (3)

- [loader-utils](https://npm.io/package/loader-utils.md) ^1.2.3
- [raptor-regexp](https://npm.io/package/raptor-regexp.md) ^1.0.1
- [webpack-sources](https://npm.io/package/webpack-sources.md) ^1.4.3

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2020-01-09
- 1.1.2 — 2020-01-09
- 1.1.1 — 2019-10-23
- 1.1.0 — 2019-10-14
- 1.0.4 — 2019-09-07
- 1.0.3 — 2019-09-05
- 1.0.2 — 2019-09-03
- 1.0.1 — 2019-09-03
- 1.0.0 — 2019-08-30

## README

<h1 align="center">
  <!-- Logo -->
  <br/>
  webpack-plugin-browser-json
	<br/>

  <!-- Language -->
  <a href="http://typescriptlang.org">
    <img src="https://img.shields.io/badge/%3C%2F%3E-typescript-blue.svg" alt="TypeScript"/>
  </a>
  <!-- Format -->
  <a href="https://github.com/prettier/prettier">
    <img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" alt="Styled with prettier"/>
  </a>
  <!-- CI -->
  <a href="https://travis-ci.org/lasso-js/webpack-plugin-browser-json">
  <img src="https://img.shields.io/travis/lasso-js/webpack-plugin-browser-json.svg" alt="Build status"/>
  </a>
  <!-- Coverage -->
  <a href="https://coveralls.io/github/lasso-js/webpack-plugin-browser-json">
    <img src="https://img.shields.io/coveralls/lasso-js/webpack-plugin-browser-json.svg" alt="Test Coverage"/>
  </a>
  <!-- NPM Version -->
  <a href="https://npmjs.org/package/webpack-plugin-browser-json">
    <img src="https://img.shields.io/npm/v/webpack-plugin-browser-json.svg" alt="NPM Version"/>
  </a>
  <!-- Downloads -->
  <a href="https://npmjs.org/package/webpack-plugin-browser-json">
    <img src="https://img.shields.io/npm/dm/webpack-plugin-browser-json.svg" alt="Downloads"/>
  </a>
</h1>

A webpack plugin that allows for an additional config file for browser dependencies.
The implementation is mostly compatible with the one from [Lasso](https://github.com/lasso-js/lasso) but is missing some features.

This is primarily meant as a stop gap utility for developers incrementally migrating from Lasso to Webpack.

# Installation

```console
npm install webpack-plugin-browser-json -D
```

# Example

**webpack.config.js**

```javascript
const { BrowserJSONPlugin } = require("webpack-plugin-browser-json");

module.exports = {
  // your webpack config
  ...,
  plugins: [
    new BrowserJSONPlugin({
      flags: ["a", "b"] // Set the lasso flags for this compilation
    })
  ]
}
```

## Code of Conduct

This project adheres to the [eBay Code of Conduct](./.github/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.

---
_Source: https://npm.io/package/webpack-plugin-browser-json · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
