问题标签 [weyland]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
183 浏览

azure-devops - 在 Azure Dev Ops 上使用 weyland 构建问题

我有一个应用程序构建Durandal并用于Weyland构建它。我已经Weyland全局安装,当我在weyland build -c "path\to\config"本地运行命令时它可以工作并产生以下输出

当我在 Azure Dev Ops 中运行相同的序列而不是WARN我得到错误:

呃!uglifyjs TypeError: sys.error 不是函数

堆栈跟踪:

正在使用命令行任务执行构建。

我的电脑和管道都配置了

为什么 Azure Pipeline VM 无法显示警告?我怎样才能解决这个问题?

0 投票
0 回答
53 浏览

javascript - 从 weyland.js 迁移到 grunt.js

我有一个使用 weyland 作为构建优化器的旧版 asp.net + durandal.js 应用程序。我们正在尝试升级到 grunt 以使用更新的东西,但我无法让它正确生成缩小的 js 构建文件。我有以下weyland-config文件:

我一直在尝试gruntfile根据这个这个来创建,这就是我所拥有的:

但是当我尝试运行 grunt 时,出现以下错误:

如果我尝试只运行 uglify,我会得到错误的压缩文件(错误的意思是应用程序在尝试使用它时会抛出错误)。有人知道如何正确地将它从 weyland 移植到 grunt 吗?