Durandal.js optimizer not working (empty main-built.js)

后端 未结 1 1774
隐瞒了意图╮
隐瞒了意图╮ 2021-01-22 11:13

I\'m trying to get Durandal.js optimizer working on my test project, but it seems to generate nothing to main-built.js. I use the following command from node.js command prompt,

相关标签:
1条回答
  • 2021-01-22 11:42

    In the same amd folder, where optimizer is stored, try running node r.js -o app.build.js. I've seen r.js sometimes choke about some dependencies, which resolves without problem when loading via require.js. For whatever reason the error messages won't show up when using optimizer --verbose. Typically the error message provides enough information to see where this occurs and if you've to update require.contig.paths or a specific define dependency.

    0 讨论(0)
提交回复
热议问题