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 +8 -0
- package/package.json +1 -1
- package/src/builderPlugin.js +4 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/src/builderPlugin.js
CHANGED
|
@@ -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, "")
|