MSBuild and Webpack

前端 未结 2 1707
遥遥无期
遥遥无期 2020-12-24 09:19

I am developing an Angular2 application in VS2015 and have a webpack bundling and minification environment set up for the same.

This is my webpack.conf.js

2条回答
  •  难免孤独
    2020-12-24 09:36

    For TFS CI build, you can refer to these steps to achieve your requirement.

    1. Add npm step
    2. Add Command Line step

    Note: There is –bail argument, which is required otherwise the step/task will be succeed even though webpack command throws exception.

    Also, you can add variable in build definition (variable tab)

提交回复
热议问题