@plumeria/vite-plugin 1.0.2 → 1.0.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/dist/index.js +3 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -165,12 +165,11 @@ export function plumeria(options = {}) {
|
|
|
165
165
|
if (!generatedCSS) {
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
.replace(/\\/g, path.posix.sep);
|
|
168
|
+
const baseId = id.replace(EXTENSION_PATTERN, '');
|
|
169
|
+
const cssFilename = `${baseId}.zero.css`;
|
|
171
170
|
const cssRelativePath = path
|
|
172
171
|
.relative(config.root, cssFilename)
|
|
173
|
-
.replace(/\\/g,
|
|
172
|
+
.replace(/\\/g, '/');
|
|
174
173
|
const cssId = `/${cssRelativePath}`;
|
|
175
174
|
cssLookup.set(cssFilename, generatedCSS);
|
|
176
175
|
cssFileLookup.set(cssId, cssFilename);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/vite-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Plumeria Vite plugin",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dist/"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@plumeria/utils": "^1.0.
|
|
18
|
+
"@plumeria/utils": "^1.0.3"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@swc/core": "1.15.2",
|