Asset ManagerFoundation · assets

Every module’s CSS, JS & images, delivered

Melis Asset Manager serves each module’s public assets over clean URLs, bundles them for production, and is the source of truth for which modules are active on the platform.

Live demo
asset-manager — module assets
// Invisible, but it's why every module's styles & scripts load.
// It serves each module's public assets over clean URLs,
// bundles CSS/JS for production (webpack), and computes
// the list of active modules the platform relies on.
Clean asset URLsPer module
Active modulesSource of truth

Package

melis-asset-manager

Role

Foundation

UI

None — headless

Serves

Module assets

Bundles

webpack

Depends on

Melis Core

Overview

Why your styles load

You never open Asset Manager — it works automatically. It serves the CSS, JavaScript and images every module ships, so the back-office and your sites display correctly.

For production it can bundle a platform’s CSS/JS into compiled files (webpack) for fewer, smaller requests — and it computes the list of active modules the Modules and Marketplace screens depend on.

Key features

The delivery layer for assets

Serving, bundling and discovery — the quiet machinery that makes every module’s styles, scripts and images reach the browser.

Serves module assets

Delivers each module’s CSS, JS and images to the browser.

Clean asset URLs

Every module’s public files served over tidy URLs.

Production bundling

Compiles CSS/JS into bundles (webpack) for speed.

Module discovery

Finds the modules installed on the platform.

Active-module list

Computes which modules are active, for the back-office to use.

Foundation

Part of the core foundation every module relies on.

See it in action

Knows what’s installed

It computes the active-module list the back-office Modules and Marketplace screens depend on.

asset-manager — module discovery
// The active-module list the BO Modules/Marketplace screens use:
$modules = $sm->get('MelisAssetManagerModulesService');
$active  = $modules->getActiveModules();   // the source of truth
DiscoveryWhat's installed
Discovery

Knows what’s installed

It computes the active-module list the back-office Modules and Marketplace screens depend on.

  • Serves CSS / JS / images
  • Bundles for production
  • Lists active modules

For developers

How it's wired

Module service

MelisAssetManagerModulesService exposes installed/active modules.

Webpack bundling

Compiles per-platform CSS/JS for production delivery.

Core-category foundation

Depends only on Melis Core; invisible to end-users.

// Asset Manager + DbDeploy + ComposerDeploy + Installer
// form the platform foundation alongside Melis Core.
// This module answers: serve assets, bundle, discover modules.

Part of Melis Platform

Explore the rest of the platform

Melis Asset Manager is part of the foundation — here are the modules it sits alongside and serves.

The delivery layer for assets

See how the platform foundation fits together.