An open API service indexing awesome lists of open source software.

https://github.com/lasso-js/webpack-plugin-browser-json

Lasso's browser.json support for webpack users.
https://github.com/lasso-js/webpack-plugin-browser-json

Last synced: 8 months ago
JSON representation

Lasso's browser.json support for webpack users.

Awesome Lists containing this project

README

          





webpack-plugin-browser-json



TypeScript



Styled with prettier



Build status



Test Coverage



NPM Version



Downloads

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.