Skip to content

Commit

Permalink
fix: make output files smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
hoelger committed Sep 30, 2024
1 parent 713ec2f commit ca811c7
Show file tree
Hide file tree
Showing 2 changed files with 305 additions and 60,799 deletions.
11 changes: 5 additions & 6 deletions fed/mosaic-output/src/main/resources/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Only NodeJS (https://nodejs.org/en/download/)

## Install Development Requirements

Change to the visualizr directory:
Change to the visualizer directory:
`cd <MOSAIC_SOURCE>/fed/mosaic-output/src/main/resources/web`

Install required modules for development and deployment (defined in package.json):
Expand All @@ -28,16 +28,15 @@ Please use following colors: \
grey `6d6d6d` \
black `080808` \
green `23ff23` \
red `ff1c1c` \
red `ff1c1c`


## Building visualizer.js

To deploy your changes you have two possibilites:
To deploy your changes you have three possibilities:
1. Creating a readable version with `npm run-script build`.
2. Creating a non-readable version with `npm run-script buildUgly`. This version is loaded faster by the browser.

To debug your changes create `visualizer.js` with the command `npm run-script debug`.
2. Creating a non-readable version with `npm run-script buildUgly`. This version is loaded faster by the browser. Use this command for the final version of your MR, otherwise the compiled files will be blown-up in size.
3. To debug your changes create `visualizer.js` with the command `npm run-script debug`.
This will add debugging information to `visualizer.js` which will be parsed by a modern browser,
such that you backtrack error to individual javascript files using the browser's developer tools.

Expand Down
Loading

0 comments on commit ca811c7

Please sign in to comment.