8

I am working on a project using Web Essentials to bundle and minify script files.

It works perfectly well and Web Essentials run when I save changes the to script files. We are currently several developers on the project and we face a problem every time we get changes from our source control (TFS). Changes to the script files does not trigger Web Essentials to run, unless we manually edit and save a script file. Since we have a few projects, we currently have to do this for every project.

Is it possible to trigger Web Essentials to run on builds (build events)?

I noticed that the bundle files include an attribute called 'runOnBuild'. This is set to true, but does not seem to do the trick.

I am also open for suggestions on alternative approaches (trigger via TypeScript compiler, etc.)

4

1 回答 1

0

在 Web Essentials 的源代码中,我发现Web Essentials使用AjaxMin。可以根据这个线程为AjaxMin创建一个构建任务:AjaxMin Build Task to minify all js to separate folder

于 2013-11-21T11:52:13.453 回答