Move js code into separate file to benefit from code analysis
This commit is contained in:
@@ -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'},
|
||||
],
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user