@vojtaholik/static-kit-core 1.0.4 → 1.0.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"vite-config.d.ts","sourceRoot":"","sources":["../src/vite-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,mBAAmB,EAAU,MAAM,MAAM,CAAC;AAQpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,wBAAgB,qBAAqB,CACnC,OAAO,GAAE,gBAAqB,GAC7B,mBAAmB,CAkGrB;AAGD,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB,uBAE7D"}
1
+ {"version":3,"file":"vite-config.d.ts","sourceRoot":"","sources":["../src/vite-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,mBAAmB,EAAU,MAAM,MAAM,CAAC;AAQpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,wBAAgB,qBAAqB,CACnC,OAAO,GAAE,gBAAqB,GAC7B,mBAAmB,CAuGrB;AAGD,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB,uBAE7D"}
@@ -42,6 +42,7 @@ export function createStaticKitConfig(options = {}) {
42
42
  const inputEntries = await getInputEntries(pagesDir, jsEntry, stylesEntry);
43
43
  console.log("📦 Building with entries:", Object.keys(inputEntries));
44
44
  return {
45
+ base: "./",
45
46
  build: {
46
47
  outDir: config.build?.output || "dist",
47
48
  emptyOutDir: true,
@@ -64,6 +65,10 @@ export function createStaticKitConfig(options = {}) {
64
65
  // Ensure sprite lands under public if emitted by Rollup
65
66
  return `${normalizedBase}images/sprite.svg`;
66
67
  }
68
+ // Handle font files - put them in fonts/ directory without hash
69
+ if (assetInfo.name?.match(/\.(woff2?|ttf|otf|eot)$/i)) {
70
+ return `${normalizedBase}fonts/[name][extname]`;
71
+ }
67
72
  return `${normalizedBase}assets/[name]-[hash][extname]`;
68
73
  },
69
74
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vojtaholik/static-kit-core",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Core library for Static Kit - simple static site framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",