Skip to content

Instantly share code, notes, and snippets.

@nbarkhina
Created January 29, 2019 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbarkhina/9de8799b0500732900729c856b9a2adf to your computer and use it in GitHub Desktop.
Save nbarkhina/9de8799b0500732900729c856b9a2adf to your computer and use it in GitHub Desktop.
requirejs.config({
paths: {
// "angular": "/node_modules/angular/angular"
},
urlArgs: function (id, url) {
var rando = Math.floor(Math.random() * Math.floor(100000));
var args = '';
if (url.indexOf('index') !== -1) {
args = '?v=' + rando;
}
return args;
}
});
require(["index"]);
//# sourceMappingURL=config.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment