浏览代码

fix the asset not changed bug

Olivier Massot 5 年之前
父节点
当前提交
3b24aee2db
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      ot_templating/Resources/Private/Partials/Classic/Assets.html

+ 5 - 1
ot_templating/Resources/Private/Partials/Classic/Assets.html

@@ -29,9 +29,13 @@ Assets included with the VHS viewhelpers
                rewrite="0"
                standalone="1"/>
 
+<f:comment><!-- Theme's file shall not be rewritten since
+                it may not be updated from a website to another --></f:comment>
 <v:asset.style name="theme"
                path="{assets_dir}/style/theme-{ot:template.getPreference(key: 'themeColor')}.css"
-               dependencies="fontAwesome,slick,slick-theme,leaflet"/>
+               dependencies="fontAwesome,slick,slick-theme,leaflet"
+               rewrite="0"
+               standalone="1"/>
 
 
 <f:comment><!-- Script assets --></f:comment>