Skip to content
Snippets Groups Projects
Verified Commit 3fd148ce authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add webpack_bundle command for compatibility

parent b5ae94c4
No related branches found
No related tags found
1 merge request!1132Resolve "Evaluate use of Vite instead of Webpack"
......@@ -12,7 +12,7 @@ class Command(BaseYarnCommand):
help = "Create Vite bundles for AlekSIS" # noqa
def add_arguments(self, parser):
parser.add_argument("command", choices=["build", "serve"], default="build")
parser.add_argument("command", choices=["build", "serve"], nargs="?", default="build")
parser.add_argument("--no-install", action="store_true", default=False)
def handle(self, *args, **options):
......
import warnings
from .vite import Command as ViteCommand
class Command(ViteCommand):
help = "Create Vite bundles for AlekSIS (legacy command alias)" # noqa
def handle(self, *args, **options):
warnings.warn(
"webpack_bundle is deprecated and will be removed "
"in AlekSIS-Core 4.0. Use the new vite command instead.",
UserWarning,
)
super().handle(*args, **options)
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