File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 * License, v. 2.0. If a copy of the MPL was not distributed with this
33 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44
5+ const crypto = require ( 'crypto' ) ;
6+
57module . exports = function ( grunt ) {
68 const srcPaths = [ '.license.header' , 'src/**/*.ftl' ] ;
79 const testPaths = [
@@ -42,6 +44,12 @@ module.exports = function (grunt) {
4244 mapping : 'public/static/static-asset-manifest.json' , // The file where the hashed file names will be stored
4345 srcBasePath : 'public/' , // the base Path you want to remove from the `key` string in the mapping file
4446 destBasePath : 'public/static' ,
47+ hashFunction : function ( source , encoding ) {
48+ return crypto
49+ . createHash ( 'md5' )
50+ . update ( source , encoding )
51+ . digest ( 'hex' ) ;
52+ } ,
4553 } ,
4654 locales : {
4755 expand : true ,
You can’t perform that action at this time.
0 commit comments