Github user benkeen commented on a diff in the pull request: https://github.com/apache/couchdb-fauxton/pull/190#discussion_r21410934 --- Diff: Gruntfile.js --- @@ -423,8 +424,43 @@ module.exports = function(grunt) { template: 'test/nightwatch_tests/nightwatch.json.underscore', dest: 'test/nightwatch_tests/nightwatch.json' } + }, + + // these rename the already-bundled, minified requireJS and CSS files to include their hash + md5: { + requireJS: { + files: { "dist/release/js/" : "dist/release/js/require.js" }, + options: { + afterEach: function (fileChanges) { + // replace the REQUIREJS_FILE placeholder with the actual filename + var newFilename = fileChanges.newPath.match(/[^\/]+$/)[0]; + config.template.release.variables.requirejs = config.template.release.variables.requirejs.replace(/REQUIREJS_FILE/, newFilename); + + // remove the original requireJS file, we don't need it anymore + config.clean.removeRequireJS = { src: [fileChanges.oldPath] }; + grunt.task.run("clean:removeRequireJS"); --- End diff -- Nice, thanks @robertkowalski! Will do.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---