【问题标题】:How to steal build an app of two html files with shared dependencies in JavascriptMVC如何在JavascriptMVC中窃取具有共享依赖项的两个html文件的应用程序
【发布时间】:2012-05-02 11:53:55
【问题描述】:

我有一个包含两个 html 文件的应用程序:

  • app/page1.html
  • app/page2.html

这些页面共享依赖关系,即 -jquery / plugins,我想使用“steal build”脚本来高效地构建它们。

我发现一些examples 和questions 描述了这个问题并给出了多个应用程序的示例,但没有给出这个问题的解决方案。

但是,例如,当我尝试使用这一行进行构建时,我遇到了错误:

js steal/buildjs app/page1.html app/page2.html -to app

有人遇到过这种情况吗?

谢谢, 谢

【问题讨论】:

    标签: javascriptmvc


    【解决方案1】:

    一个好人(asavoy)创建了一个处理此问题的拉取请求,显然这是新版本中的一个错误:

    https://github.com/jupiterjs/steal/pull/83

    我会在自己测试后发布更新。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-14
      • 2021-04-23
      • 2013-04-22
      • 2018-12-02
      • 1970-01-01
      • 2021-01-06
      • 1970-01-01
      • 2016-02-18
      相关资源
      最近更新 更多