Use the composite renderer

This commit is contained in:
Tim Schaub
2018-11-13 12:42:43 +01:00
parent dd23055db1
commit b3903df156
7 changed files with 9 additions and 90 deletions

View File

@@ -152,6 +152,9 @@ ExampleBuilder.prototype.render = async function(dir, chunk) {
// add in script tag
const jsName = `${name}.js`;
let jsSource = getJsSource(chunk, path.join('.', jsName));
if (!jsSource) {
throw new Error(`No .js source for ${jsName}`);
}
jsSource = jsSource.replace(/'\.\.\/src\//g, '\'');
if (data.cloak) {
for (const entry of data.cloak) {