cloudcc-cli 1.5.2 → 1.5.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/README.md CHANGED
@@ -1,3 +1,11 @@
1
+ # ReleaseV1.5.3
2
+ #### 发布日期:2023-11-21
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 迭代
6
+ * 关闭scoped检查自动添加scoped。
7
+ * 增加style无scoped提示。
8
+
1
9
  # ReleaseV1.5.2
2
10
  #### 发布日期:2023-10-17
3
11
  #### 发布范围:全量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -97,7 +97,10 @@ class Builder {
97
97
  let vueData = vueContent + ""
98
98
  // 添加scoped限制样式污染
99
99
  if (!vueContent.includes("scoped")) {
100
- vueData = vueData.replace("<style", "<style scoped")
100
+ // vueData = vueData.replace("<style", "<style scoped ")
101
+ console.log()
102
+ console.log(chalk.yellow("警告:style中缺少scoped属性,可能会造成样式全局污染,建议修复。"));
103
+ console.log()
101
104
  }
102
105
  // 去除空格
103
106
  // vueData = vueData.replace(/\ +/g, "")