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

https://github.com/lomby92/encore-entrypoints-analyzer

Webpack plugin for Symfony Encore that shows entrypoints.json file content in an interactive map
https://github.com/lomby92/encore-entrypoints-analyzer

analyze bundle encore symfony webpack

Last synced: 2 months ago
JSON representation

Webpack plugin for Symfony Encore that shows entrypoints.json file content in an interactive map

Awesome Lists containing this project

README

          

![Version](https://badgen.net/github/release/lomby92/encore-entrypoints-analyzer)
![License](https://badgen.net/github/license/lomby92/encore-entrypoints-analyzer)
![Total downloads](https://badgen.net/npm/dt/encore-entrypoints-analyzer)
![Continuous Integration](https://github.com/lomby92/encore-entrypoints-analyzer/actions/workflows/ci.yml/badge.svg)
![Publish to NPM](https://github.com/lomby92/encore-entrypoints-analyzer/actions/workflows/release.yml/badge.svg)

# Encore entrypoints analyzer
Webpack plugin for Symfony Encore that shows entrypoints.json file content in an interactive map

## Install
NOTE: this tool is intended to work only with [Symfony Encore](https://github.com/symfony/webpack-encore).
```bash
# NPM
npm install --save-dev encore-entrypoints-analyzer
# Yarn
yarn add -D encore-entrypoints-analyzer
```

## Usage
```js
// File: webpack.config.js
const config = Encore.getWebpackConfig();
...
const EncoreEntrypointsAnalyzerPlugin = require('encore-entrypoints-analyzer');
config.plugins.push(new EncoreEntrypointsAnalyzerPlugin());
```
It will create an interactive view of the entrypoints and chunks in your build.
![Preview](https://user-images.githubusercontent.com/5825081/151657981-a6e47f3b-ca63-440f-8339-bd93953f2fc2.png)

## Contributing
Check out [CONTRIBUTING.md](./CONTRIBUTING.md) for instructions on contributing :tada: