var Ext = Ext || {};

Ext.beforeLoad = function(tags) {

    Ext.manifest = '../build/production/OPS/modern.json';

    return function(manifest) {
        // Update JS Paths
        var i = 0;
        manifest.js.forEach(function(jsPath) {
            manifest.js[i].assetConfig.path = jsPath.assetConfig.path.replace('wwwroot/', '');
            i++;
        });

        // Update CSS Paths
        i = 0;
        manifest.css.forEach(function(cssPath) {
            manifest.css[i].assetConfig.path = cssPath.assetConfig.path.replace('wwwroot/', '');
            i++;
        });

        //Update Ressources Path
        manifest.content.resources.path.replace('wwwroot/', '');
    };
};