ant-app-builder
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -253,2 +253,3 @@ | ||
let filePath = iconFile ? FS.path.join(appPath, iconFile) : "" | ||
let dirPath = FS.path.dirname(filePath) | ||
@@ -258,2 +259,12 @@ if (iconFile && await FS.fileExists(filePath)) { | ||
data = data.toString().replace(/\t|\n/g, "") | ||
let regexp = /@import ['"](.+?)['"]/mg | ||
let imports = data.match(regexp) || [] | ||
await Promise.all(imports.map(async item => { | ||
let importPath = FS.path.join(dirPath, item.slice(9,-1)) | ||
let importFile = await FS.readFile(importPath) | ||
let rx = new RegExp(item, "im") | ||
data = data.replace(rx, importFile) | ||
})) | ||
return data | ||
@@ -260,0 +271,0 @@ } |
{ | ||
"name": "ant-app-builder", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
@@ -5,3 +5,3 @@ | ||
let srcDir = path.join(__dirname, "temp/") | ||
let srcDir = path.join(__dirname, "temp/preferences") | ||
let destDir = path.join(__dirname, "temp/_build") | ||
@@ -8,0 +8,0 @@ let uglify = false |
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
50606
392