Commit ff79a688 authored by apavlov@chromium.org's avatar apavlov@chromium.org

DevTools: Remove the "stylesheets" field from module descriptors at build time

The "stylsheets" field is not used at runtime,
so it is removed to reduce the footprint.

R=vsevik

Review URL: https://codereview.chromium.org/676993002

git-svn-id: svn://svn.chromium.org/blink/trunk@184338 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent f3dc0731
......@@ -152,8 +152,12 @@ class ReleaseBuilder(AppBuilder):
module = copy.copy(module_descriptors[name])
# Clear scripts, as they are not used at runtime
# (only the fact of their presence is important).
if module.get('scripts'):
stylesheets = module.get('stylesheets', None)
if module.get('scripts') or stylesheets:
module['scripts'] = []
# Stylesheets list is not used at runtime.
if stylesheets is not None:
del module['stylesheets']
result.append(module)
return json.dumps(result)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment