Skip to content

Commit 9e346e9

Browse files
authored
dynamically load js map
and remove some whitespace in init.py
1 parent 4ff05c9 commit 9e346e9

File tree

1 file changed

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

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 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 %}
46+
{%- endif %}
4747
'namespace': package_name
48+
'dynamic': True
4849
}
4950
]
5051

0 commit comments

Comments
 (0)