ant-app-builder
Advanced tools
Comparing version 1.4.5 to 1.4.6
@@ -326,2 +326,10 @@ | ||
// replace references to files getting minified | ||
files.map(fp => { | ||
let p = FS.path.parse(fp), | ||
rx = new RegExp("/"+ p.base) | ||
file = file.toString() | ||
.replace(rx, "/"+ p.name +".min"+ p.ext) | ||
}) | ||
switch (parsed.ext) { | ||
@@ -331,6 +339,6 @@ case ".js": | ||
options = { compress: true, module: true } | ||
minified = terser.minify(file.toString(), options) | ||
minified = terser.minify(file, options) | ||
break | ||
case ".json": | ||
minified = { code: jsonminify(file.toString()) } | ||
minified = { code: jsonminify(file) } | ||
break | ||
@@ -337,0 +345,0 @@ } |
{ | ||
"name": "ant-app-builder", | ||
"version": "1.4.5", | ||
"version": "1.4.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
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
53456
466