【问题标题】:Which one i should use grunt-cache-breaker? or grunt-usemin? for caching issue我应该使用哪个 grunt-cache-breaker?还是咕噜咕噜的usemin?对于缓存问题
【发布时间】:2018-01-09 12:30:09
【问题描述】:

我尝试使用 grunt-usemin,但它不起作用。我试过 grunt-cache-breaker 它工作正常。但是 js 文件名不会在 grunt-cache-breaker 中改变。它只会更改 html 中的引用。在解决 angularjs 应用程序的缓存问题方面,哪一个比较好。

【问题讨论】:

    标签: angularjs gruntjs grunt-usemin


    【解决方案1】:

    Grunt-usemin 工作正常,但您需要在 HTML 文件中提供样式表和脚本文件的确切文件路径引用,然后只有 grunt-usemin 工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-13
      • 1970-01-01
      • 1970-01-01
      • 2015-07-20
      • 2021-01-19
      相关资源
      最近更新 更多