【问题标题】:Configure html-loader to replace ng-src attributes配置 html-loader 替换 ng-src 属性
【发布时间】:2016-03-03 20:17:30
【问题描述】:

如何配置 html-loader 以用正确的路径替换我的 ng-src 属性?我有一个旧版应用程序,其中包含 -

<img ng-src="{{path}}/test.jpg" />

【问题讨论】:

    标签: angularjs webpack webpack-html-loader


    【解决方案1】:

    查看文档的示例部分(https://github.com/webpack/html-loader):

    &attrs[]=img:ng-src
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-18
      • 1970-01-01
      • 2012-05-26
      • 2012-01-12
      • 1970-01-01
      • 2012-11-16
      • 2011-11-19
      • 1970-01-01
      相关资源
      最近更新 更多