@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.
- package/lib/webpack.config.js +3 -1
- package/package.json +1 -1
package/lib/webpack.config.js
CHANGED
|
@@ -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
|
-
|
|
127
|
+
// 使用绝对路径,避免 sass 相对于当前编译文件解析路径的问题
|
|
128
|
+
return `@import "${fullPath}";\n`
|
|
127
129
|
}
|
|
128
130
|
}
|
|
129
131
|
return ''
|