diff --git a/Gruntfile.js b/Gruntfile.js index 9fc7290d..f998ce90 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -38,12 +38,14 @@ module.exports = function(grunt) { }, curve25519: { src: [ - 'build/_before.js', 'build/curve25519_compiled.js', 'build/curve25519.js', - 'build/_after.js' ], - dest: 'js/curve25519_compiled.js' + dest: 'js/curve25519_compiled.js', + options: { + banner: ';(function(){\n', + footer: '\n})();' + } } }, sass: { diff --git a/build/_after.js b/build/_after.js deleted file mode 100644 index 22a7560f..00000000 --- a/build/_after.js +++ /dev/null @@ -1,2 +0,0 @@ - -})(); diff --git a/build/_before.js b/build/_before.js deleted file mode 100644 index aee29137..00000000 --- a/build/_before.js +++ /dev/null @@ -1 +0,0 @@ -;(function() { diff --git a/js/curve25519_compiled.js b/js/curve25519_compiled.js index 67851700..01ac2d3f 100644 --- a/js/curve25519_compiled.js +++ b/js/curve25519_compiled.js @@ -1,5 +1,4 @@ -;(function() { - +;(function(){ // Note: For maximum-speed code, see "Optimizing Code" on the Emscripten wiki, https://github.com/kripken/emscripten/wiki/Optimizing-Code // Note: Some Emscripten settings may limit the speed of the generated code. try { @@ -2999,5 +2998,4 @@ run(); }; })(); - -})(); +})(); \ No newline at end of file