Bricks 中文文档:bricks/generate_css_file

📄 原始资料  |  展开查看原始 JSON(bricks-generate_css_file.json){ “name”: “bricks/generate_css_file”, “kind”: “action”, “url”: “https://academy.bricksbuilder.io/developer/hooks/actions/action-bricks-generate_css_file/”, “scraped_at”: “2026-08-29”, “hook_name”: “bricks/generate_css_file”, “description…

📄 原始资料  |  展开查看原始 JSON(bricks-generate_css_file.json)
{
  "name": "bricks/generate_css_file",
  "kind": "action",
  "url": "https://academy.bricksbuilder.io/developer/hooks/actions/action-bricks-generate_css_file/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/generate_css_file",
  "description": {
    "en": "If your CSS loading method is set to External files , this hook will be triggered when a CSS file is generated in Bricks. Developers can use this hook to trigger other actions related to CSS file generation. It’s useful for instructing a cache plugin to clear the cache when a CSS file is generated. ( @since 1.9.5 ) Parameters:",
    "zh": "当 CSS 加载方式设置为“外部文件(External files)”时,每次 Bricks 生成 CSS 文件都会触发此钩子。开发者可用它触发与 CSS 文件生成相关的其他动作——例如通知缓存插件在 CSS 文件生成时清缓存。(@since 1.9.5)参数:"
  },
  "example_usage": null
}

前言

当 CSS 加载方式设置为“外部文件(External files)”时,每次 Bricks 生成 CSS 文件都会触发此钩子。开发者可用它触发与 CSS 文件生成相关的其他动作——例如通知缓存插件在 CSS 文件生成时清缓存。(@since 1.9.5)参数:

补充说明

更多细节可参考 官方文档