|
@@ -163,7 +163,7 @@ def develop_labextension_py(module, user=False, sys_prefix=False, overwrite=Fals
|
|
|
return full_dests
|
|
|
|
|
|
|
|
|
-def build_labextension(path, logger=None):
|
|
|
+def build_labextension(path, logger=None, static_path=None):
|
|
|
"""Build a labextension in the given path"""
|
|
|
core_path = osp.join(HERE, 'staging')
|
|
|
ext_path = osp.abspath(path)
|
|
@@ -172,7 +172,12 @@ def build_labextension(path, logger=None):
|
|
|
logger.info('Building extension in %s' % path)
|
|
|
|
|
|
builder = _ensure_builder(ext_path, core_path)
|
|
|
- subprocess.check_call(['node', builder, '--core-path', core_path, ext_path], cwd=ext_path)
|
|
|
+
|
|
|
+ arguments = ['node', builder, '--core-path', core_path, ext_path]
|
|
|
+ if static_path is not None:
|
|
|
+ arguments.extend(['--static-path', static_path])
|
|
|
+
|
|
|
+ subprocess.check_call(arguments, cwd=ext_path)
|
|
|
|
|
|
|
|
|
def watch_labextension(path, app_dir=None, logger=None):
|