我正在使用土星网站主题来自Grav(https://getgrav.org/downloads/skeletons),并且想要更改主页的背景图像(以及最终的其他样式)。在主题的自定义CSS(user/themes/saturn/css/custom.css
)中,我更改了背景图像,但未更新新图像,除非我更新了custom.css
和custom.min.css
。更新Grav主题的“未缩小”CSS文件后,如何缩小CSS?
我认为改变这两个文件是不合适的;系统应该生成一个新版本的缩小CSS。读GRAV文档(https://learn.getgrav.org/themes/asset-manager)我发现GRAV提供
的资产管道可用于来缩小和压缩资产以减少浏览器请求的数量,也是资产的整体规模。
如何运行这个管道更新/再缩小主题的CSS?或者我需要安装一个单独的CSS缩小工具?
其他信息: 我user/config/system.yaml
文件包括这样的:
assets: css_pipeline: false # The CSS pipeline is the unification of multiple CSS resources into one file css_minify: true # Minify the CSS during pipelining css_rewrite: true # Rewrite any CSS relative URLs during pipelining