Ignore SCSS empty errors

This commit is contained in:
Samuel Elliott 2018-02-15 19:19:08 +00:00
parent c9a20b7fcf
commit 01cacb3ef6
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class Comms {
});
BDIpc.on('bd-compileSass', o => {
if (typeof o.args.path !== 'string' && typeof o.args.data !== 'string') return;
if (!o.args.path && !o.args.data) o.reply('');
if (typeof o.args.path === 'string' && typeof o.args.data === 'string') {
o.args.data = `${o.args.data} @import '${o.args.path}';`;
o.args.path = undefined;