Ejemplo n.º 1
0
 function (next) {
     if (!setHash) {
         return next();
     }
     // Get a predictable hash for the bundle
     mdeps(self.config.main, {
         resolve: hashBundle._resolve.bind(hashBundle)
     })
     .pipe(meta().on('hash', function (hash) {
         self.result.js.bundleHash = hash;
         next();
     }));
 },
Ejemplo n.º 2
0
 function (next) {
     if (!setHash) {
         return next();
     }
     // Get a predictable hash for the bundle
     var opts = {
         resolve: hashBundle._resolve.bind(hashBundle),
         transform: self.config.browserify.transforms
     };
     mdeps(self.config.main, opts)
     .pipe(meta().on('hash', function (hash) {
         self.result.js.bundleHash = hash;
         next();
     }));
 },