Revised webpack bundling and updated worker loading, turned inline worker on by default.

This commit is contained in:
Taloth Saldono
2020-06-06 23:03:15 +02:00
committed by Qstick
parent 9c3b4e3025
commit 3e3b2a7784
5 changed files with 8 additions and 16 deletions

View File

@@ -13,6 +13,7 @@ const frontendFolder = path.join(__dirname, '..');
const srcFolder = path.join(frontendFolder, 'src');
const isProduction = process.argv.indexOf('--production') > -1;
const isProfiling = isProduction && process.argv.indexOf('--profile') > -1;
const inlineWebWorkers = true;
const distFolder = path.resolve(frontendFolder, '..', '_output', uiFolder);
@@ -121,7 +122,9 @@ const config = {
use: {
loader: 'worker-loader',
options: {
name: '[name].js'
name: '[name].js',
inline: inlineWebWorkers,
fallback: !inlineWebWorkers
}
}
},