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.
- Host: GitHub
- URL: https://github.com/lasso-js/webpack-plugin-browser-json
- Owner: lasso-js
- License: mit
- Created: 2019-08-30T23:27:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T09:14:28.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T00:04:58.419Z (about 1 year ago)
- Language: TypeScript
- Size: 1.01 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
webpack-plugin-browser-json
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.