@cmmn/tools 1.7.10 → 1.7.12
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/bundle/rollup.config.js +3 -2
- package/package.json +2 -2
package/bundle/rollup.config.js
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|
|
@@ -211,7 +212,7 @@ export class ConfigCreator {
|
|
|
211
212
|
}
|
|
212
213
|
if (this.options.minify && this.options.mount){
|
|
213
214
|
const toCopy = Object.entries(this.options.mount).map(([to, from]) => {
|
|
214
|
-
return {src: from, dest: join(this.outDir, to)}
|
|
215
|
+
return {src: from + '/*', dest: join(this.outDir, to)}
|
|
215
216
|
});
|
|
216
217
|
result.push(copy({
|
|
217
218
|
targets: toCopy
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmmn/tools",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.12",
|
|
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": "
|
|
87
|
+
"gitHead": "fcf6faf7560f27a57563dcf211e1b4773e9dd7e0"
|
|
88
88
|
}
|