Skip to content
Snippets Groups Projects
Commit 35eb02a6 authored by Julian's avatar Julian
Browse files

Run webpack dev mode if DEBUG is activated

parent 4f3fd826
Branches 616-docs-document-dashboard-and-dashboard-widgets
No related tags found
1 merge request!1079Webpack development build
Pipeline #84673 passed
......@@ -31,4 +31,5 @@ class Command(BaseYarnCommand):
# Run webpack
config_path = os.path.join(settings.BASE_DIR, "aleksis", "core", "webpack.config.js")
shutil.copy(config_path, settings.NODE_MODULES_ROOT)
yarn_adapter.call_yarn(["run", "webpack"])
mode = "development" if settings.DEBUG else "production"
yarn_adapter.call_yarn(["run", "webpack", f"--mode={mode}"])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment