@kupola/kupola 1.6.8 → 1.6.9

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.
@@ -95,6 +95,18 @@ const config = {
95
95
  };
96
96
 
97
97
  export function setConfig(options) {
98
+ if (options && typeof options === 'object') {
99
+ if (options.iconsPath) {
100
+ options.paths = options.paths || {};
101
+ options.paths.icons = options.iconsPath;
102
+ delete options.iconsPath;
103
+ }
104
+ if (options.basePath) {
105
+ options.paths = options.paths || {};
106
+ options.paths.base = options.basePath;
107
+ delete options.basePath;
108
+ }
109
+ }
98
110
  mergeDeep(config, options);
99
111
  }
100
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kupola/kupola",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "A lightweight UI toolkit for any web project. No heavy frontend frameworks required.",
5
5
  "main": "dist/kupola.cjs.js",
6
6
  "module": "dist/kupola.esm.js",