librarianphp/command-build

Librarian的静态构建命令

1.2.2 2023-06-20 06:18 UTC

README

Librarian的静态构建器命令。

./librarian build

配置要求

在Librarian的配置文件夹中添加以下static.php配置文件

<?php

return [
    /*****************************************************************************
     * Settings for static build output
     ******************************************************************************/
    'output_path' => __DIR__ . '/../public',
    'assets_path' => __DIR__ . '/../app/Resources/public'
];
  • output_path:静态构建输出的位置
  • assets_path:包含应复制到生成的网站根目录中的公共资源资产的目录。