visual studio 2012 - How to execute the Durandal JS optimizer.exe as part of VS2012 build/publish process? -


i getting 404 not found main-built.js file when running durandaljs spa application published in release mode on web server.

404 not found: main-built.js

so figured out needed run optimizer.exe generete missing file main-built.js

is possible include execution of optimizer.exe part of visual studio 2012 build/publish process? if yes, how do that?

thanks

i added optimizer step pre build step.

so in pre build events box in project properties of web project added this:

cd $(projectdir)app\durandal\amd  optimizer.exe 

main-built.js generated part of build process.

note have add main-built.js file project deployed automatically if using msdeploy. had because using tfs hosted build service automatic azure publishing. without step file not being deployed.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -