https://github.com/noeldemartin/moodleapp-bundle-analysis
https://github.com/noeldemartin/moodleapp-bundle-analysis
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noeldemartin/moodleapp-bundle-analysis
- Owner: NoelDeMartin
- Created: 2023-03-06T16:45:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-04T09:30:01.000Z (over 1 year ago)
- Last Synced: 2025-02-25T13:18:53.807Z (7 months ago)
- Language: HTML
- Homepage: https://noeldemartin.github.io/moodleapp-bundle-analysis/
- Size: 713 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Moodle App Bundle Analysis
This repo hosts an analysis of the [Moodle App](https://github.com/moodlehq/moodleapp) generated using the [webpack-bundle-analyzer](https://www.npmjs.com/package/webpack-bundle-analyzer) plugin.
You can view it online here: [noeldemartin.github.io/moodleapp-bundle-analysis](https://noeldemartin.github.io/moodleapp-bundle-analysis)
## Instructions
Here's the steps you can follow to generate this report yourself:
1. Install `webpack-bundle-analyzer`:
```sh
npm install webpack-bundle-analyzer --save-dev
```2. Add it to `webpack.config.js`:
```js
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;// Append to the plugins array.
config.plugins.push(new BundleAnalyzerPlugin({
analyzerMode: 'static',
generateStatsFile: true,
}));
```3. Generate the report (you will find it on `www/report.html`):
```sh
NODE_OPTIONS=--max-old-space-size=8192 npx ng build --configuration production --stats-json
```