@elenajs/plugin-rollup-css 0.3.0 → 0.4.0

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.
Files changed (2) hide show
  1. package/package.json +8 -2
  2. package/src/index.js +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elenajs/plugin-rollup-css",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Rollup plugin that minifies individual CSS files and optionally concatenates them into a single bundle.",
5
5
  "author": "Elena <hi@elenajs.com>",
6
6
  "homepage": "https://elenajs.com/",
@@ -15,6 +15,9 @@
15
15
  "files": [
16
16
  "src"
17
17
  ],
18
+ "scripts": {
19
+ "test": "vitest run"
20
+ },
18
21
  "engines": {
19
22
  "node": ">= 20"
20
23
  },
@@ -24,5 +27,8 @@
24
27
  "dependencies": {
25
28
  "lightningcss": "^1.31.1"
26
29
  },
27
- "gitHead": "e2caa93517537a057b0e362d8bc2e4315b0fb883"
30
+ "devDependencies": {
31
+ "vitest": "4.0.18"
32
+ },
33
+ "gitHead": "81fe2fc78111f605854c07df2001f746231d9dfc"
28
34
  }
package/src/index.js CHANGED
@@ -1,3 +1,17 @@
1
+ /**
2
+ * ██████████ ████
3
+ * ░░███░░░░░█░░███
4
+ * ░███ █ ░ ███ ██████ ████████ ██████
5
+ * ░██████ ███ ███░░███░░███░░███ ░░░░░███
6
+ * ░███░░█ ███ ░███████ ░███ ░███ ███████
7
+ * ░███ ░ █ ███ ░███░░░ ░███ ░███ ███░░███
8
+ * ██████████ █████░░██████ ████ █████░░████████
9
+ * ░░░░░░░░░░ ░░░░░ ░░░░░░ ░░░░ ░░░░░ ░░░░░░░░
10
+ *
11
+ * Elena Rollup CSS Plugin
12
+ * https://elenajs.com
13
+ */
14
+
1
15
  import { basename } from "path";
2
16
  import { readFileSync, readdirSync } from "fs";
3
17
  import { transform } from "lightningcss";