@memobit/themes 1.0.1 → 1.0.2

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/vite.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  interface ThemePlugin {
2
2
  name: string;
3
- config(userConfig: {
4
- base?: string;
5
- }): {
3
+ config(): {
6
4
  define: Record<string, string>;
7
5
  };
8
6
  configureServer(server: {
package/dist/vite.js CHANGED
@@ -33,9 +33,8 @@ var memobitThemes = (options = {}) => {
33
33
  const themes = readThemeFiles(root);
34
34
  return {
35
35
  name: "memobit-themes",
36
- config(userConfig) {
37
- const base = (userConfig.base ?? "/").replace(/\/+$/, "");
38
- const urls = Object.fromEntries([...themes.keys()].map((name) => [name, `${base}/${THEME_ASSET_DIR}/${name}.css`]));
36
+ config() {
37
+ const urls = Object.fromEntries([...themes.keys()].map((name) => [name, `../${THEME_ASSET_DIR}/${name}.css`]));
39
38
  return { define: { __MEMOBIT_THEME_URLS__: JSON.stringify(urls) } };
40
39
  },
41
40
  configureServer(server) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memobit/themes",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "64 themes for the Memobit apps — each published as its own stylesheet so an app loads only the one it is showing, with preview palettes for the theme picker.",
5
5
  "keywords": [
6
6
  "css",