Skip to content

Commit 297bc44

Browse files
authored
Merge pull request #98 from plotly/dynamic-sourcemap
dynamically load js map
2 parents 4ff05c9 + c9bd532 commit 297bc44

File tree

1 file changed

+6
-5
lines changed
  • {{cookiecutter.project_shortname}}/{{cookiecutter.project_shortname}}

1 file changed

+6
-5
lines changed

{{cookiecutter.project_shortname}}/{{cookiecutter.project_shortname}}/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,20 @@
3232
_js_dist = [
3333
{
3434
'relative_package_path': '{{cookiecutter.project_shortname}}.min.js',
35-
{% if cookiecutter.publish_on_npm == 'True' -%}
35+
{% if cookiecutter.publish_on_npm == 'True' -%}
3636
'external_url': 'https://unpkg.com/{0}@{2}/{1}/{1}.min.js'.format(
3737
package_name, __name__, __version__),
38-
{%- endif %}
38+
{%- endif %}
3939
'namespace': package_name
4040
},
4141
{
4242
'relative_package_path': '{{cookiecutter.project_shortname}}.min.js.map',
43-
{% if cookiecutter.publish_on_npm == 'True' -%}
43+
{% if cookiecutter.publish_on_npm == 'True' -%}
4444
'external_url': 'https://unpkg.com/{0}@{2}/{1}/{1}.min.js.map'.format(
4545
package_name, __name__, __version__),
46-
{%- endif %}
47-
'namespace': package_name
46+
{%- endif %}
47+
'namespace': package_name,
48+
'dynamic': True
4849
}
4950
]
5051

0 commit comments

Comments
 (0)