we need both initial build and watching
This commit is contained in:
parent
3facbeb051
commit
da2a5502a3
|
|
@ -275,7 +275,7 @@ for (const bundle of bundles) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build/watch trace viewer service worker.
|
// initial service worker build.
|
||||||
steps.push({
|
steps.push({
|
||||||
command: 'npx',
|
command: 'npx',
|
||||||
args: [
|
args: [
|
||||||
|
|
@ -283,12 +283,11 @@ steps.push({
|
||||||
'--config',
|
'--config',
|
||||||
'vite.sw.config.ts',
|
'vite.sw.config.ts',
|
||||||
'build',
|
'build',
|
||||||
...(watchMode ? ['--watch', '--minify=false'] : []),
|
|
||||||
...(withSourceMaps ? ['--sourcemap=inline'] : []),
|
...(withSourceMaps ? ['--sourcemap=inline'] : []),
|
||||||
],
|
],
|
||||||
shell: true,
|
shell: true,
|
||||||
cwd: path.join(__dirname, '..', '..', 'packages', 'trace-viewer'),
|
cwd: path.join(__dirname, '..', '..', 'packages', 'trace-viewer'),
|
||||||
concurrent: !watchMode,
|
concurrent: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Build/watch web packages.
|
// Build/watch web packages.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue