@cmmn/tools 1.7.10 → 1.7.11

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.
@@ -124,7 +124,8 @@ export class ConfigCreator {
124
124
  inject = `<base href="${this.options.base}">` + inject;
125
125
  }
126
126
  const html = fs.readFileSync(path.join(this.root, this.options.html), 'utf8')
127
- return html.replace('</head>', inject + '</head>');
127
+ const interpolated = new Function(...Object.keys(this.options), `return \`${html}\`;`)(...Object.values(this.options));
128
+ return interpolated.replace('</head>', inject + '</head>');
128
129
  }
129
130
  });
130
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmmn/tools",
3
- "version": "1.7.10",
3
+ "version": "1.7.11",
4
4
  "description": "Compilation, bundling, code generator, testing.",
5
5
  "main": "dist/rollup.config.js",
6
6
  "type": "module",
@@ -84,5 +84,5 @@
84
84
  },
85
85
  "author": "",
86
86
  "license": "ISC",
87
- "gitHead": "cf56c770e5aa17b665d5a5617871b7fad2c0be66"
87
+ "gitHead": "1861dc80b2959b3a727f55174195cec7227b36fb"
88
88
  }