@quicktvui/web-cli 1.0.0-beta.42 → 1.0.0-beta.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,6 +98,7 @@ function detectCSSLoader() {
98
98
 
99
99
  /**
100
100
  * 检测全局 Sass 变量文件
101
+ * 注意:返回绝对路径,避免 sass 相对于当前文件解析路径的问题
101
102
  */
102
103
  function detectSassAdditionalData() {
103
104
  // 常见的全局变量文件路径
@@ -123,7 +124,8 @@ function detectSassAdditionalData() {
123
124
  for (const relativePath of possiblePaths) {
124
125
  const fullPath = path.join(projectRoot, relativePath)
125
126
  if (fs.existsSync(fullPath)) {
126
- return `@import "${relativePath}";\n`
127
+ // 使用绝对路径,避免 sass 相对于当前编译文件解析路径的问题
128
+ return `@import "${fullPath}";\n`
127
129
  }
128
130
  }
129
131
  return ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktvui/web-cli",
3
- "version": "1.0.0-beta.42",
3
+ "version": "1.0.0-beta.43",
4
4
  "description": "CLI tool for QuickTVUI web development - zero configuration",
5
5
  "author": "QuickTVUI Team",
6
6
  "license": "Apache-2.0",