0

I have multiple js input files. How can I make the Microsoft Ajax Minifier (using AjaxMinTask.dll) combine them into a single minified js file?

2 Answers 2

1

Instead of using the JsSourceExtensionPattern/JsTargetExtension pair, use the JsCombinedFileName property (and the corresponding equivalents for CSS). If the JsCombinedFileName property is set, it will combine all the input JS files into the path specified by the property, rather than minifying each file separately.

Sign up to request clarification or add additional context in comments.

Comments

0

I solved it by doing this:

<Exec Command="echo y| type %(SourceFiles.Identity) &gt;&gt; $(ScriptOutputPath)\$(RootNamespace).debug.js" />

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.