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

Add missing management command

parent bdddf9ce
No related branches found
No related tags found
1 merge request!1045Introduce Vuetify and GraphQL
Pipeline #79978 failed
import json
import os
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from ...util.frontend_helpers import get_apps_with_assets
class Command(BaseCommand):
help = "Write out webpack entrypoints for all apps"
def handle(self, *args, **options):
assets = {
app: {"dependOn": "core", "import": os.path.join(path, "index")}
for app, path in get_apps_with_assets().items()
}
assets["core"] = os.path.join(settings.BASE_DIR, "aleksis", "core", "assets", "index")
with open(os.path.join(settings.BASE_DIR, "webpack-entrypoints.json"), "w") as out:
json.dump(assets, out)
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