mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-13 06:37:46 +00:00
Print progress during webpack processing
This should allow us to debug which assets are causing crashes in CI.
This commit is contained in:
parent
325c1037c0
commit
d493de1924
@ -106,6 +106,7 @@ def run_xmodule(_args):
|
|||||||
|
|
||||||
sys.argv[1:] = ["common/static/xmodule"]
|
sys.argv[1:] = ["common/static/xmodule"]
|
||||||
import xmodule.static_content
|
import xmodule.static_content
|
||||||
|
|
||||||
xmodule.static_content.main()
|
xmodule.static_content.main()
|
||||||
|
|
||||||
if django_settings_module:
|
if django_settings_module:
|
||||||
@ -121,7 +122,11 @@ def run_webpack(args):
|
|||||||
os.environ["STATIC_ROOT_CMS"] = os.path.join(args.static_root, "studio")
|
os.environ["STATIC_ROOT_CMS"] = os.path.join(args.static_root, "studio")
|
||||||
os.environ["NODE_ENV"] = {"prod": "production", "dev": "development"}[args.env]
|
os.environ["NODE_ENV"] = {"prod": "production", "dev": "development"}[args.env]
|
||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
["webpack", "--config=webpack.{env}.config.js".format(env=args.env)]
|
[
|
||||||
|
"webpack",
|
||||||
|
"--progress",
|
||||||
|
"--config=webpack.{env}.config.js".format(env=args.env),
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user