xhs-mp-compiler-cli 2.0.7-beta.0 → 2.0.7
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.
|
@@ -32,7 +32,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
32
32
|
const postcssRpx2Vw_1 = __importDefault(require("../../utils/postcssRpx2Vw"));
|
|
33
33
|
const types_1 = require("../../types");
|
|
34
34
|
const constant_config_1 = require("../../config/constant.config");
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* 1. 用户可能会在css文件中使用 page 标签选择器,需要替换为 xhs-page,这样才能使得 运行时的xhs-page样式 和 用户定义的page标签样式合并
|
|
37
|
+
* 2. 针对组合选择器 某些用户可能不加空格区分,需要处理
|
|
38
|
+
*/
|
|
39
|
+
const LABEL_REG = new RegExp(`(^|\\s|>|~|\\+)(page|${Object.keys(xhs_mp_ml_parser_1.tagTransformMap).join('|')})`, 'g');
|
|
36
40
|
const CSS_MINIMIZER_OPTIONS = {
|
|
37
41
|
preset: ['default', { normalizeUrl: false, calc: false }]
|
|
38
42
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xhs-mp-compiler-cli",
|
|
3
|
-
"version": "2.0.7
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "xhs mp command tool.",
|
|
5
5
|
"preferGlobal": true,
|
|
6
6
|
"category": "esm",
|
|
@@ -88,18 +88,18 @@
|
|
|
88
88
|
"webpack-chain": "^6.5.1",
|
|
89
89
|
"webpack-sources": "^3.2.2",
|
|
90
90
|
"xhs-mp-workerpool": "^9.1.3",
|
|
91
|
-
"xhs-mp-ml-loader": "2.0.7
|
|
92
|
-
"xhs-mp-compiler-utils": "2.0.7
|
|
93
|
-
"xhs-mp-pack": "2.0.7
|
|
94
|
-
"xhs-mp-project": "2.0.7
|
|
95
|
-
"xhs-mp-shared": "2.0.7
|
|
96
|
-
"xhs-mp-shared-fs": "2.0.7
|
|
97
|
-
"xhs-mp-sjs-loader": "2.0.7
|
|
98
|
-
"xhs-mp-sketch-loader": "2.0.7
|
|
91
|
+
"xhs-mp-ml-loader": "2.0.7",
|
|
92
|
+
"xhs-mp-compiler-utils": "2.0.7",
|
|
93
|
+
"xhs-mp-pack": "2.0.7",
|
|
94
|
+
"xhs-mp-project": "2.0.7",
|
|
95
|
+
"xhs-mp-shared": "2.0.7",
|
|
96
|
+
"xhs-mp-shared-fs": "2.0.7",
|
|
97
|
+
"xhs-mp-sjs-loader": "2.0.7",
|
|
98
|
+
"xhs-mp-sketch-loader": "2.0.7",
|
|
99
99
|
"yauzl": "^2.10.0"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"xhs-mp-ml-parser": "2.0.7
|
|
102
|
+
"xhs-mp-ml-parser": "2.0.7"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@types/babel__generator": "7.6.3",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"typescript": "5.1.6",
|
|
124
124
|
"vue3-jest": "27.0.0-alpha.2",
|
|
125
125
|
"webpack-dev-server": "4.0.0-beta.3",
|
|
126
|
-
"xhs-mp-ml-parser": "2.0.7
|
|
126
|
+
"xhs-mp-ml-parser": "2.0.7"
|
|
127
127
|
},
|
|
128
128
|
"scripts": {
|
|
129
129
|
"version": "formula changelog && git add .",
|