@plasmicapp/cli 0.1.225 → 0.1.227
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.
|
@@ -98,7 +98,11 @@ function fixComponentCssReferences(context, fixImportContext, cssFilePath) {
|
|
|
98
98
|
const asset = fixImportContext.images[assetId];
|
|
99
99
|
if (asset) {
|
|
100
100
|
return context.config.images.scheme === "public-files"
|
|
101
|
-
? `url("${
|
|
101
|
+
? `url("${lang_utils_1.ensure(context.config.images.publicUrlPrefix) +
|
|
102
|
+
(lang_utils_1.ensure(context.config.images.publicUrlPrefix).endsWith("/")
|
|
103
|
+
? ""
|
|
104
|
+
: "/") +
|
|
105
|
+
upath_1.default.relative(lang_utils_1.ensure(context.config.images.publicDir), asset.filePath)}")`
|
|
102
106
|
: `url("./${upath_1.default.relative(upath_1.default.dirname(cssFilePath), asset.filePath)}")`;
|
|
103
107
|
}
|
|
104
108
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.227",
|
|
4
4
|
"description": "plasmic cli for syncing local code with Plasmic designs",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=12"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@babel/preset-typescript": "^7.12.1",
|
|
23
|
-
"@plasmicapp/react-web": "0.2.
|
|
23
|
+
"@plasmicapp/react-web": "0.2.171",
|
|
24
24
|
"@types/findup-sync": "^2.0.2",
|
|
25
25
|
"@types/glob": "^7.1.3",
|
|
26
26
|
"@types/inquirer": "^6.5.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"wrap-ansi": "^7.0.0",
|
|
78
78
|
"yargs": "^15.4.1"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "256694dd227acca3600d2475b0985713252d99cb"
|
|
81
81
|
}
|
|
@@ -139,14 +139,16 @@ export async function fixComponentCssReferences(
|
|
|
139
139
|
const asset = fixImportContext.images[assetId];
|
|
140
140
|
if (asset) {
|
|
141
141
|
return context.config.images.scheme === "public-files"
|
|
142
|
-
? `url("${
|
|
143
|
-
|
|
144
|
-
ensure(context.config.images.publicUrlPrefix)
|
|
142
|
+
? `url("${
|
|
143
|
+
ensure(context.config.images.publicUrlPrefix) +
|
|
144
|
+
(ensure(context.config.images.publicUrlPrefix).endsWith("/")
|
|
145
|
+
? ""
|
|
146
|
+
: "/") +
|
|
145
147
|
path.relative(
|
|
146
148
|
ensure(context.config.images.publicDir),
|
|
147
149
|
asset.filePath
|
|
148
150
|
)
|
|
149
|
-
|
|
151
|
+
}")`
|
|
150
152
|
: `url("./${path.relative(
|
|
151
153
|
path.dirname(cssFilePath),
|
|
152
154
|
asset.filePath
|