cedro 0.1.16 → 0.1.18

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": "cedro",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@types/node": "^20.4.4",
@@ -69,10 +69,20 @@ export function createApplication(content: any): Application {
69
69
  const timestamp = new Date().getTime();
70
70
  const isProduction = process.env.NODE_ENV === "production";
71
71
 
72
+ //DEVELOPMENT
73
+ /*
72
74
  const pathDev = ".." + url + "?ts=" + timestamp;
73
75
 
74
76
  const pathProduction = `../../assets${decode(
75
77
  ietmRoute.getAttribute("href")
78
+ )}/index.js?ts=${timestamp}`;*/
79
+
80
+ //PRODUCTION
81
+
82
+ const pathDev = url + "?ts=" + timestamp;
83
+
84
+ const pathProduction = `/assets${decode(
85
+ ietmRoute.getAttribute("href")
76
86
  )}/index.js?ts=${timestamp}`;
77
87
 
78
88
  const path = isProduction ? pathProduction : pathDev;