@unocss/webpack 0.45.5 → 0.45.8
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.cjs +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -255,6 +255,8 @@ function WebpackPlugin(configOrPath, defaults) {
|
|
|
255
255
|
await Promise.all(tasks);
|
|
256
256
|
const result = await uno.generate(tokens, { minify: true });
|
|
257
257
|
for (const file of files) {
|
|
258
|
+
if (file === "*")
|
|
259
|
+
return;
|
|
258
260
|
let code = compilation.assets[file].source().toString();
|
|
259
261
|
let replaced = false;
|
|
260
262
|
code = code.replace(HASH_PLACEHOLDER_RE, "");
|
package/dist/index.mjs
CHANGED
|
@@ -245,6 +245,8 @@ function WebpackPlugin(configOrPath, defaults) {
|
|
|
245
245
|
await Promise.all(tasks);
|
|
246
246
|
const result = await uno.generate(tokens, { minify: true });
|
|
247
247
|
for (const file of files) {
|
|
248
|
+
if (file === "*")
|
|
249
|
+
return;
|
|
248
250
|
let code = compilation.assets[file].source().toString();
|
|
249
251
|
let replaced = false;
|
|
250
252
|
code = code.replace(HASH_PLACEHOLDER_RE, "");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.8",
|
|
4
4
|
"description": "The Webpack plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ampproject/remapping": "^2.2.0",
|
|
40
40
|
"@rollup/pluginutils": "^4.2.1",
|
|
41
|
-
"@unocss/config": "0.45.
|
|
42
|
-
"@unocss/core": "0.45.
|
|
41
|
+
"@unocss/config": "0.45.8",
|
|
42
|
+
"@unocss/core": "0.45.8",
|
|
43
43
|
"magic-string": "^0.26.2",
|
|
44
44
|
"unplugin": "^0.8.1",
|
|
45
45
|
"webpack-sources": "^3.2.3"
|