Skip to content

Commit a354a73

Browse files
authored
Merge pull request #3034 from plotly/alex/shrink-metadata
Remove whitespace in metadata.json
2 parents f2244d6 + 6e65ece commit a354a73

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1010
- [#3011](https://github.com/plotly/dash/pull/3011) Fixed an exception error caused by assigning `None` to array properties with `exact` or `shape` element types. Fixes [#3010](https://github.com/plotly/dash/issues/3010)
1111
- [#2991](https://github.com/plotly/dash/pull/2991) Add support for URL decoding of the search parameter for pages.
1212
- [#3025](https://github.com/plotly/dash/pull/3025) Fix no output callback with error handler setting the response to NoUpdate and triggering an error.
13+
- [#3034](https://github.com/plotly/dash/pull/3034) Remove whitespace from `metadata.json` files to reduce package size
1314

1415
## [2.18.1] - 2024-09-12
1516

dash/development/component_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def generate_components(
138138
with open(
139139
os.path.join(project_shortname, "metadata.json"), "w", encoding="utf-8"
140140
) as f:
141-
json.dump(metadata, f, indent=2)
141+
json.dump(metadata, f, separators=(",", ":"))
142142

143143
generate_imports(project_shortname, components)
144144

0 commit comments

Comments
 (0)