Merge fe435ae5c4
into 3110cab18f
This commit is contained in:
commit
adbe148038
1 changed files with 0 additions and 15 deletions
|
@ -320,21 +320,6 @@ async function start(opts) {
|
|||
startupPromises.push(serve_data.add(options, serving.data, item, id, opts));
|
||||
}
|
||||
if (options.serveAllStyles) {
|
||||
fs.readdir(options.paths.styles, { withFileTypes: true }, (err, files) => {
|
||||
if (err) {
|
||||
return;
|
||||
}
|
||||
for (const file of files) {
|
||||
if (file.isFile() && path.extname(file.name).toLowerCase() == '.json') {
|
||||
const id = path.basename(file.name, '.json');
|
||||
const item = {
|
||||
style: file.name,
|
||||
};
|
||||
addStyle(id, item, false, false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
const watcher = chokidar.watch(
|
||||
path.join(options.paths.styles, '*.json'),
|
||||
{},
|
||||
|
|
Loading…
Reference in a new issue