Skip to content

Commit

Permalink
Merge pull request #1185 from winnerNick/dev
Browse files Browse the repository at this point in the history
Sort also the directory name for proper ordering between css and js plugin folders
  • Loading branch information
alexcjohnson authored May 15, 2020
2 parents 71a233b + 52eb81c commit 066e571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- [#1249](https://github.com/plotly/dash/pull/1249) Fixes [#919](https://github.com/plotly/dash/issues/919) so `dash.testing` is compatible with more `pytest` plugins, particularly `pytest-flake8` and `pytest-black`.
- [#1248](https://github.com/plotly/dash/pull/1248) Fixes [#1245](https://github.com/plotly/dash/issues/1245), so you can use prop persistence with components that have dict IDs, ie for pattern-matching callbacks.
- [#1185](https://github.com/plotly/dash/pull/1185) Sort asset directories, same as we sort files inside those directories. This way if you need your assets loaded in a certain order, you can add prefixes to subdirectory names and enforce that order.

## [1.12.0] - 2020-05-05
### Added
Expand Down
2 changes: 1 addition & 1 deletion dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ def _walk_assets_directory(self):
ignore_str = self.config.assets_ignore
ignore_filter = re.compile(ignore_str) if ignore_str else None

for current, _, files in os.walk(walk_dir):
for current, _, files in sorted(os.walk(walk_dir)):
if current == walk_dir:
base = ""
else:
Expand Down

0 comments on commit 066e571

Please sign in to comment.