| Index: third_party/WebKit/Source/devtools/scripts/concatenate_application_code.py
|
| diff --git a/third_party/WebKit/Source/devtools/scripts/concatenate_application_code.py b/third_party/WebKit/Source/devtools/scripts/concatenate_application_code.py
|
| index e88dab615d5ff927969f477edd85826ca78bc669..057d10ac1d2f59d2b0a9c9eb7d21c6a70811cc10 100755
|
| --- a/third_party/WebKit/Source/devtools/scripts/concatenate_application_code.py
|
| +++ b/third_party/WebKit/Source/devtools/scripts/concatenate_application_code.py
|
| @@ -42,7 +42,7 @@ def minify_js(javascript):
|
|
|
|
|
| def concatenated_module_filename(module_name, output_dir):
|
| - return join(output_dir, module_name + '_module.js')
|
| + return join(output_dir, module_name + '/' + module_name + '_module.js')
|
|
|
|
|
| def symlink_or_copy_file(src, dest, safe=False):
|
| @@ -138,19 +138,21 @@ class ReleaseBuilder(AppBuilder):
|
| result = []
|
| for name in module_descriptors:
|
| module = copy.copy(module_descriptors[name])
|
| + module_type = self.descriptors.application[name].get('type')
|
| # Clear scripts, as they are not used at runtime
|
| # (only the fact of their presence is important).
|
| resources = module.get('resources', None)
|
| if module.get('scripts') or resources:
|
| - module['scripts'] = []
|
| - # Resources list is not used at runtime.
|
| + if module_type == 'autostart':
|
| + # Autostart modules are already baked in.
|
| + del module['scripts']
|
| + else:
|
| + # Non-autostart modules are vulcanized.
|
| + module['scripts'] = [name + '_module.js']
|
| + # Resources are already baked into scripts.
|
| if resources is not None:
|
| del module['resources']
|
| - condition = self.descriptors.application[name].get('condition')
|
| - if condition:
|
| - module['condition'] = condition
|
| - type = self.descriptors.application[name].get('type')
|
| - if type == 'remote':
|
| + if module_type == 'remote':
|
| module['remote'] = True
|
| result.append(module)
|
| return json.dumps(result)
|
|
|