neo.mjs 4.0.23 → 4.0.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "4.0.23",
3
+ "version": "4.0.24",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -90,7 +90,8 @@ class Stylesheet extends Base {
90
90
  let className = data.className,
91
91
  config = Neo.config,
92
92
  env = config.environment,
93
- path = env.startsWith('dist/') ? '' : `dist/${env}/`;
93
+ path = env.startsWith('dist/') ? '' : `../../dist/${env}/`,
94
+ rootPath = config.basePath.substr(6);
94
95
 
95
96
  if (className.startsWith('Neo.')) {
96
97
  className = className.substring(4);
@@ -108,7 +109,7 @@ class Stylesheet extends Base {
108
109
  this.createStyleSheet(
109
110
  null,
110
111
  null,
111
- `../../${path}css${config.useCssVars ? '' : '-no-vars'}/${folder}/${className}.css`
112
+ `${rootPath}${path}css${config.useCssVars ? '' : '-no-vars'}/${folder}/${className}.css`
112
113
  );
113
114
  }
114
115
  });