Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ngx-builders/source-map-analyzer

typescript, builder
https://github.com/ngx-builders/source-map-analyzer

analyzer angular-cli builder nx nx-workspace

Last synced: about 1 month ago
JSON representation

typescript, builder

Awesome Lists containing this project

README

        

![source-map-analyzer](https://socialify.git.ci/ngx-builders/source-map-analyzer/image?font=Raleway&forks=1&issues=1&language=1&owner=1&pattern=Charlie%20Brown&pulls=1&stargazers=1&theme=Dark)

[![npm version](https://badge.fury.io/js/%40ngx-builders%2Fanalyze.svg)](https://badge.fury.io/js/%40ngx-builders%2Fanalyze)
![Node.js CI](https://github.com/ngx-builders/source-map-analyzer/workflows/Node.js%20CI/badge.svg?branch=master)
[![npm downloads](https://img.shields.io/npm/dt/@ngx-builders/analyze?label=npm%20downloads)](https://www.npmjs.com/package/@ngx-builders/analyze)

# Builder To Run Source Map Explorer

[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)

Want to run the source-map-explorer with Angular?
This builder does it for you with zero configuration.

## Setting up this Builder

```
ng add @ngx-builders/analyze
OR
ng add @ngx-builders/analyze --project={projectName}
```

NOTE: This version uses npx to install source-map-explorer temporarily if it isn't installed already. If you don't have npx installed, please install it.

We will remove this dependecny in future updates.

## That's it. Now, you are good to go

Now whenever you want to analyze your angular project just run a command `ng run [YOUR_PROJECT_NAME]:analyze` and it will run the source-map-explorer.

## 📦 Options

#### --gzip
- **optional**
- Default: `false` (boolean)
- Example:
- `ng run [YOUR_PROJECT_NAME]:analyze --gzip` – Give the stats of gzip bundle.

#### --diffLoading
- **optional**
- Default: `false` (boolean)
- Example:
- `ng run [YOUR_PROJECT_NAME]:analyze --diffLoading=true` – You can change to true if differential loading is enabled.

# License
[MIT](https://github.com/ngx-builders/source-map-analyzer/blob/master/LICENSE)

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



Ankit

📖

Tobias Wittwer

📖

Bhavik

💻

vimal patel

💻

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!