getSourceMapUrl example

$config = [
            'compress' => $settings->getCompressCss(),
            'sourceMap' => $settings->getCreateSourceMap(),
        ];

        if ($settings->getCreateSourceMap()) {
            $config += [
                'sourceMapRootpath' => '../../',
                'sourceMapBasepath' => $this->rootDir,
                'sourceMapWriteTo' => $this->pathResolver->getSourceMapPath(),
                'sourceMapURL' => $this->pathResolver->getSourceMapUrl($shop),
            ];
        }

        return $this->eventManager->filter(
            'Theme_Compiler_Configure',
            $config,
            [
                'shop' => $shop,
                'settings' => $settings,
            ]
        );
    }
Home | Imprint | This part of the site doesn't use cookies.