@qtoggle/qui 1.19.2 → 1.19.3
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/package.json +1 -1
- package/pyproject.toml +1 -1
- package/webpack/webpack-common.js +7 -4
package/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -27,7 +27,6 @@ const LESS_DIR = 'less'
|
|
|
27
27
|
const TMPL_DIR = 'templates'
|
|
28
28
|
const DIST_DIR = 'dist'
|
|
29
29
|
|
|
30
|
-
const LESS_REGEX = new RegExp(`${LESS_DIR}/.*\\.less$`)
|
|
31
30
|
const QUI_JS_REGEX = new RegExp(`qui/${JS_DIR}/.*\\.jsm?$`)
|
|
32
31
|
const QUI_LESS_REGEX = new RegExp(`qui/${LESS_DIR}/.*\\.less$`)
|
|
33
32
|
const IMG_REGEX = new RegExp(`${IMG_DIR}/.*\\.(svg|png|gif|jpg|jpe?g|ico)$`)
|
|
@@ -35,6 +34,10 @@ const FONT_REGEX = new RegExp(`${FONT_DIR}/.*\\.(woff)$`)
|
|
|
35
34
|
const TMPL_REGEX = new RegExp(`${TMPL_DIR}/.*\\.(html|json|js)$`)
|
|
36
35
|
|
|
37
36
|
|
|
37
|
+
function escapeForLess(s) {
|
|
38
|
+
return `~"${s}"`
|
|
39
|
+
}
|
|
40
|
+
|
|
38
41
|
function requireFromDir(regex, path, excludeRegex) {
|
|
39
42
|
let filePaths = glob.sync(path + '/**')
|
|
40
43
|
|
|
@@ -68,9 +71,9 @@ function makeLessRule({type, theme, isProduction, appName, appFullPath, quiFullP
|
|
|
68
71
|
qui_theme: theme,
|
|
69
72
|
app_img_path: appImgPath,
|
|
70
73
|
app_font_path: appFontPath,
|
|
71
|
-
qui_img_path: quiImgPath,
|
|
72
|
-
qui_font_path: quiFontPath,
|
|
73
|
-
qui_less_path: quiLessPath
|
|
74
|
+
qui_img_path: escapeForLess(quiImgPath),
|
|
75
|
+
qui_font_path: escapeForLess(quiFontPath),
|
|
76
|
+
qui_less_path: escapeForLess(quiLessPath)
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
79
|
}
|