Skip to content

Commit dc2b5cb

Browse files
committed
Moved integrity attr whitespace separator to WebpackLoader
1 parent 9c36bbe commit dc2b5cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

webpack_loader/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_assets(self):
4040

4141
def get_integrity_attr(self, chunk):
4242
if not self.config.get('INTEGRITY'):
43-
return ''
43+
return ' '
4444

4545
integrity = chunk.get('integrity')
4646
if not integrity:

webpack_loader/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_as_tags(bundle_name, extension=None, config='DEFAULT', suffix='', attrs=
7575
).format(
7676
''.join([chunk['url'], suffix]),
7777
attrs,
78-
loader.get_integrity_attr(chunk) or ' ',
78+
loader.get_integrity_attr(chunk),
7979
))
8080
elif chunk['name'].endswith(('.css', '.css.gz')):
8181
tags.append((
@@ -84,7 +84,7 @@ def get_as_tags(bundle_name, extension=None, config='DEFAULT', suffix='', attrs=
8484
''.join([chunk['url'], suffix]),
8585
attrs,
8686
'"stylesheet"' if not is_preload else '"preload" as="style"',
87-
loader.get_integrity_attr(chunk) or ' ',
87+
loader.get_integrity_attr(chunk),
8888
))
8989
return tags
9090

0 commit comments

Comments
 (0)