public function addAsset($name, $path)
    {
        if (!is_file($path)) {
            throw new \RuntimeException('The asset file "' . $path . '" does not exist.');
        }
        $this->assets[$name] = $path;
    }