Step 1: Edit the overrides.js File
- Locate the
gulp/extension-mechanism/overrides.jsfile in the top-level directory of your theme developer tools installation. - Add the following lines of code to the
overrides.jsfile:
file_path = file_path.replace(extension_manifest.vendor + ‘/’, ”);
file_path = file_path.replace(extension_manifest.name + ‘/’, ”);
The following example shows where to place the new lines:
else if(ext === '.tpl')
{
var aux = dst_path.split('/')
, extensions_name = aux.length > 1 && aux[1]
, file_path = aux.join('/')
, extension_manifest = manifest_manager.getManifestByName(extensions_name);
file_path = file_path.replace(extension_manifest.vendor + '/', '');
file_path = file_path.replace(extension_manifest.name + '/', '');
_.each(extension_manifest.templates.application, function(app, app_name)
{
var files = theme_manifest.templates.application[app_name].files;
if(_.contains(app.files, file_path) && !_.contains(files, src_path))
{
files.push(src_path);
}
});
}
Step 2: Deploy and Activate Your Theme