@lingxiteam/bundle-less-theme-tools
Advanced tools
Comparing version 0.0.1-alpha.8 to 0.0.1-alpha.9
@@ -8,6 +8,6 @@ | ||
* @param {String} filePath less 样式文件路径 | ||
* @param {Array} modulePaths 记录-文件中含第三方模块化语法导入的less的语句 | ||
* @param {String} nodeModulesPath 第三方模块真实存放路径 | ||
* @returns | ||
*/ | ||
function bundleLessTheme (filePath) { | ||
function bundleLessTheme (filePath, nodeModulesPath) { | ||
// 缓存路径,防止重复导入 | ||
@@ -85,3 +85,3 @@ const cacheImportPath = {}; | ||
const modulePath = moduleMainEntry.slice(0, moduleNameStartIndex + moduleName.length); | ||
wholePath = path.join(modulePath, importPath.replace(moduleNameMatch, '')); | ||
wholePath = path.join(nodeModulesPath || modulePath, importPath.replace(moduleNameMatch, '')); | ||
} else { | ||
@@ -88,0 +88,0 @@ wholePath = path.join(fileDirectory, importPath); |
{ | ||
"name": "@lingxiteam/bundle-less-theme-tools", | ||
"version": "0.0.1-alpha.8", | ||
"version": "0.0.1-alpha.9", | ||
"description": "A tool for bundling less theme files.", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "f547dd8259b5350cff3b6fcbb2abb3f4d665e92c" | ||
"gitHead": "4bbed20b2ebdf98289d083a1a880ffe2c86700a0" | ||
} |
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
5771
22