用于触发构建的webpack命令

时间:2017-06-02 08:11:44

标签: angular webpack

我正在开展一个角度项目,我正在寻找在JenkinsFile中配置构建命令。我们使用的上一个构建命令是node_modules / @ angular / cli / bin / ng build(从&#39; angular / cli&#39;中触发构建);我想配置等效的webpack命令。我试过public PetViewModel[] QueryPetViewModel_2(string pattern) { using (var context = new MyDbContext(connectionString)) { var petInfos = context.Pets .Where(p => p.Name.Contains(pattern)) .Join(context.Members, p => p.Member.Id, m => m.Id, (p, m) => new { Pet = p, Member = m } ) .ToArray(); var result = new List<PetViewModel>(); foreach (var info in petInfos) { var team = context.Teams .SingleOrDefault(t => t.Members.Any(m => m.Id == info.Member.Id)); result.Add(new PetViewModel { Name = info.Pet.Name, TeamItIndirectlyBelongsTo = team?.Name, }); } return result.ToArray(); } } ;但它从来没有用过,有人可以用正确的命令帮我通过node_modules目录触发webpack吗?

2 个答案:

答案 0 :(得分:1)

node_modules/.bin/做了这个伎俩

答案 1 :(得分:1)

尝试此命令:

$ node_modules/.bin/webpack