Move js code into separate file to benefit from code analysis

This commit is contained in:
Maximilian Krög
2020-07-12 10:59:56 +02:00
parent f8732cd0a8
commit 681fc155a7
4 changed files with 123 additions and 122 deletions

View File

@@ -176,7 +176,7 @@ class ExampleBuilder {
};
const indexSource = `var info = ${JSON.stringify(info)}`;
compilation.assets['index.js'] = new RawSource(indexSource);
compilation.assets['examples-info.js'] = new RawSource(indexSource);
});
}