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

@@ -71,6 +71,7 @@ module.exports = {
{from: 'resources', to: 'resources'},
{from: 'Jugl.js', to: 'Jugl.js'},
{from: 'index.html', to: 'index.html'},
{from: 'index.js', to: 'index.js'},
],
}),
],

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);
});
}