public static function getAssetCompressFiles(): array
    {
        $helper = new FrontendBridgeHelper(new View());
        $dependencies = $helper->compileDependencies();
        $plugins = array_map('\Cake\Utility\Inflector::underscore', Plugin::loaded());

        foreach ($dependencies as $n => $dependency) {
            $parts = explode('/', $dependency);
            if (empty($parts[0]) && in_array($parts[1], $plugins)) {
                $prefix = '/' . $parts[1] . '/';
                $dependency = preg_replace(
                    '/^' . str_replace('/', '\/', $prefix) . '/',
                    'plugin:' . Inflector::camelize($parts[1]) . ':',
                    $dependency
                );
            }
            if (substr($dependency, 0, 4) == '/js/') {
                $dependency = substr($dependency, 4);
            }
            $dependencies[$n] = $dependency;
        }

        return $dependencies;
    }