mf-examples 1.5.31 → 1.5.34
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 +0 -1
- package/package.json +6 -6
- package/src/index.html +1 -1
- package/vite.config.mts +0 -54
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
[](https://npmjs.org/package/mf-examples)
|
|
5
5
|
[](https://github.com/arlac77/mf-examples/issues)
|
|
6
6
|
[](https://actions-badge.atrox.dev/arlac77/mf-examples/goto)
|
|
7
|
-
[](https://coveralls.io/github/arlac77/mf-examples)
|
|
8
7
|
# mf-examples
|
|
9
8
|
|
|
10
9
|
Examples entry page
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mf-examples",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.34",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"@semantic-release/exec": "^7.1.0",
|
|
34
34
|
"@semantic-release/github": "^12.0.2",
|
|
35
35
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
36
|
-
"mf-hosting-frontend": "^3.9.
|
|
37
|
-
"mf-styling": "^3.
|
|
38
|
-
"npm-pkgbuild": "^19.
|
|
36
|
+
"mf-hosting-frontend": "^3.9.11",
|
|
37
|
+
"mf-styling": "^3.3.0",
|
|
38
|
+
"npm-pkgbuild": "^19.1.2",
|
|
39
39
|
"semantic-release": "^25.0.2",
|
|
40
40
|
"stylelint": "^16.26.1",
|
|
41
41
|
"stylelint-config-standard": "^39.0.1",
|
|
42
|
-
"vite": "^7.
|
|
43
|
-
"vite-plugin-compression2": "^2.
|
|
42
|
+
"vite": "^7.3.0",
|
|
43
|
+
"vite-plugin-compression2": "^2.4.0"
|
|
44
44
|
},
|
|
45
45
|
"repository": {
|
|
46
46
|
"type": "git",
|
package/src/index.html
CHANGED
package/vite.config.mts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
import { compression } from "vite-plugin-compression2";
|
|
3
|
-
import { extractFromPackage } from "npm-pkgbuild";
|
|
4
|
-
|
|
5
|
-
export default defineConfig(async ({ command, mode }) => {
|
|
6
|
-
const res = extractFromPackage(
|
|
7
|
-
{
|
|
8
|
-
dir: new URL("./", import.meta.url).pathname,
|
|
9
|
-
mode
|
|
10
|
-
},
|
|
11
|
-
process.env
|
|
12
|
-
);
|
|
13
|
-
const first = await res.next();
|
|
14
|
-
const pkg = first.value;
|
|
15
|
-
const properties = pkg.properties;
|
|
16
|
-
const base = properties["http.path"];
|
|
17
|
-
const production = mode === "production";
|
|
18
|
-
|
|
19
|
-
process.env["VITE_NAME"] = properties.name;
|
|
20
|
-
process.env["VITE_DESCRIPTION"] = properties.description;
|
|
21
|
-
process.env["VITE_VERSION"] = properties.version;
|
|
22
|
-
|
|
23
|
-
return {
|
|
24
|
-
base,
|
|
25
|
-
root: "src",
|
|
26
|
-
server: { host: true },
|
|
27
|
-
plugins: [
|
|
28
|
-
compression({
|
|
29
|
-
algorithms: ["brotliCompress"],
|
|
30
|
-
exclude: [
|
|
31
|
-
/\.(map)$/,
|
|
32
|
-
/\.(br)$/,
|
|
33
|
-
/\.(gz)$/,
|
|
34
|
-
/\.(png)$/,
|
|
35
|
-
/\.(jpg)$/,
|
|
36
|
-
/\.(gif)$/,
|
|
37
|
-
/\.(webp)$/,
|
|
38
|
-
/\.(heic)$/,
|
|
39
|
-
/\.(avif)$/,
|
|
40
|
-
/\.(jxl)$/,
|
|
41
|
-
/\.(pdf)$/,
|
|
42
|
-
/\.(docx)$/
|
|
43
|
-
],
|
|
44
|
-
threshold: 500
|
|
45
|
-
})
|
|
46
|
-
],
|
|
47
|
-
build: {
|
|
48
|
-
outDir: "../build",
|
|
49
|
-
emptyOutDir: true,
|
|
50
|
-
minify: production,
|
|
51
|
-
sourcemap: true
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
});
|