0

I have RequireJS running on my IIS server, for my MVC web app.

Is it possible to make RequireJS pick up the minified versions of the files, rather than their unminified? Visual Studio makes all of these files and they seem to be going to waste.

My understanding of NodeJS servers is they can open the javascript files to send dependencies aswell, but I cannot see that happening with MVC.

1 Answer 1

1

There is no build in way to tell requirejs to use the minified versions. You could replace the files in your source directory with the minified versions, r.js has an option for this. Or redefine the source path of your js files, dependent on the environment the application is running.

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

1 Comment

Thanks. I'll accept your answer, but I hope someone else can post a hack or work around.

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.