grunt-minifyify
Advanced tools
Comparing version 3.1.0 to 3.2.0
{ | ||
"name": "grunt-minifyify", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Grunt plugin to produce minified source and source maps with browserify and minifyify.", | ||
@@ -5,0 +5,0 @@ "main": "tasks/minifyify.js", |
@@ -34,3 +34,4 @@ var fs = require('fs'); | ||
'add', | ||
'transform' | ||
'transform', | ||
'globalTransform' | ||
].forEach(function (type) { | ||
@@ -68,2 +69,13 @@ file[type] = [].concat(data[type] || []).concat(options[type] || []); | ||
}); | ||
if (Array.isArray(file.globalTransform) { | ||
file[type].forEach(function(object) { | ||
bundler.transform(object, { | ||
global: true | ||
}); | ||
}); | ||
} else if (file.globalTransform) { | ||
bundler.transform(file.globalTransform, { | ||
global: true | ||
}) | ||
} | ||
if (file.src) { | ||
@@ -70,0 +82,0 @@ grunt.fail.warn(new Error('file.src is deprecated.' + |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5090
139