Skip to content

Commit

Permalink
Move require() up
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl committed May 15, 2017
1 parent 0f45e4e commit 755360b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/lib/uglify.js
Expand Up @@ -12,6 +12,7 @@
var path = require('path');
var UglifyJS = require('uglify-js');
var uriPath = require('uri-path');
var domprops = require('uglify-js/tools/domprops');

// Converts \r\n to \n
function normalizeLf(string) {
Expand Down Expand Up @@ -94,7 +95,7 @@ exports.init = function(grunt) {
minifyOptions.mangle.properties.reserved = [];
}
if (options.reserveDOMProperties) {
require('uglify-js/tools/domprops').forEach(function(name) {
domprops.forEach(function(name) {
UglifyJS._push_uniq(minifyOptions.mangle.properties.reserved, name);
});
}
Expand Down

0 comments on commit 755360b

Please sign in to comment.