Created
January 29, 2019 20:53
-
-
Save nbarkhina/9de8799b0500732900729c856b9a2adf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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