generate at build time

pull/526/head
Cory LaViska 2021-09-07 11:53:32 -04:00
rodzic 3677f6cf0f
commit 053a5e9bd7
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -22,6 +22,7 @@ del.sync('./dist');
try {
if (!dev) execSync('tsc', { stdio: 'inherit' }); // for type declarations
execSync('node scripts/make-metadata.js', { stdio: 'inherit' });
execSync('node scripts/make-search.js', { stdio: 'inherit' });
execSync('node scripts/make-vscode-data.js', { stdio: 'inherit' });
execSync('node scripts/make-css.js', { stdio: 'inherit' });
execSync('node scripts/make-icons.js', { stdio: 'inherit' });
@ -124,6 +125,7 @@ try {
// Reload without rebuilding when the docs change
bs.watch(['docs/**/*']).on('change', filename => {
console.log(`Docs file changed - ${filename}`);
execSync('node scripts/make-search.js', { stdio: 'inherit' });
bs.reload();
});