When using Typescript (v0.8.3), with Visual Studio + Web Essentials, I have configure Web Essentials to use the AMD module compiler flag, and also have it to minify the generated JS.
![enter image description here](https://i.stack.imgur.com/Gja7q.png)
In my AppMain.ts I imported a module using the import keyword
/// <reference path="./../modules/jquery.d.ts" />
import main = module('classes/facebook');
export class AppMain {
public run() {
$(()=>{
var app = new facebook.App();
app.start();
});
}
}
And the generated JS looks like the following
define(["require", "exports", 'classes/facebook'], function(require, exports, __main__) {
var main = __main__;
var AppMain = (function () {
function AppMain() { }
AppMain.prototype.run = function () {
$(function () {
var app = new facebook.App();
app.start();
});
};
return AppMain;
})();
exports.AppMain = AppMain;
})
My question is, how do I get the generated requirejs code to load the *.min instead? Since Web Essentials already generated the minify version of the JS file.
E.g. What of what I want from the generated JS file:
define(["require", "exports", 'classes/facebook.min'], function(require, exports, __main__)
Edit:
I've lots of modules, so I'd prefer a way that gives me less headache.