I also learned that these unpkg.com URLs are used when the serve_locally dash app option is turned off. So starting with the usage.py and applying this patch
Fixing this __init__.py file makes the sed fixup unnecessary as dash-generate-components script uses the __init__.py file to generate the src/DashTextareaAutocomplete.jl content.
I was about to submit a PR to plotly/dash, when I realised that our problems with the unpkg.com URLs were entirely caused by ... me :facepalm:
Back in https://github.com/etpinard/dash-textarea-autocomplete/commit/75ab848ba4f8f714aa8ed45972aa16682315df5a, I decided to replace
_
to-
in thepackage.json
name field to follow the convention that other dash component packages are using like e.g.dash-core-components
(on npm and pypi). But in turn, this change parted ways with thedash-component-boilerplate
template and made the__init__.py
template file not function as planned.I also learned that these unpkg.com URLs are used when the
serve_locally
dash app option is turned off. So starting with theusage.py
and applying this patchcurrently gives:
Fixing this
__init__.py
file makes the sed fixup unnecessary asdash-generate-components
script uses the__init__.py
file to generate thesrc/DashTextareaAutocomplete.jl
content.cc @Felix-Gauthier