@newlogic-digital/core 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
package/modules/Core.js CHANGED
@@ -43,6 +43,7 @@ let Config = {
43
43
  paths: {
44
44
  temp: "temp",
45
45
  cdn: "temp/cdn",
46
+ base: "",
46
47
  input: {
47
48
  root: "src",
48
49
  main: "src/main.json",
@@ -324,7 +325,7 @@ class Core {
324
325
  let contents = file.contents.toString();
325
326
 
326
327
  contents = contents.replace(new RegExp(`${Config.paths.input.assets}`, 'g'),
327
- `${Config.paths.output.assets.replace(Config.paths.output.root + "/", "")}`)
328
+ `${Config.paths.output.assets.replace(Config.paths.output.root + "/", Config.paths.base.length > 0 ? Config.paths.base + "/" : "")}`)
328
329
 
329
330
  file.contents = Buffer.from(contents);
330
331
 
@@ -185,7 +185,7 @@ export class Templates {
185
185
  }
186
186
 
187
187
  if (Config.paths.output.rewrite && url.indexOf(`/${Config.paths.output.root}`) === 0) {
188
- url = url.replace(`/${Config.paths.output.root}`, "")
188
+ url = url.replace(`/${Config.paths.output.root}`, Config.paths.base.length > 0 ? `/${Config.paths.base}` : "")
189
189
  }
190
190
 
191
191
  return url;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "0.9.9",
4
+ "version": "0.9.10",
5
5
  "main": "index.js",
6
6
  "author": "New Logic Studio s.r.o.",
7
7
  "description": "Set of tools that can be used to create modern web applications",