const electron = require('electron');
const { app } = electron;
const { ipcMain: ipc } = electron;
const { dialog } = electron;
const { BrowserWindow } = electron;
// const sass = require('node-sass')
const fs = require('fs');

var win;

// function compileSass() {
//   sass.render({
//     file: 'assets/css/main.scss',
//     outFile: 'assets/css/main.css',
//     outputStyle: 'comporessed'
//   }, (err, result) => {
//     fs.writeFile('assets/css/main.css', result.css, err => {
//       console.log(err)
//     })
//   })
// }

function createWindow() {
  win = new BrowserWindow({
    width: 800,
    height: 600
  });
  win.loadURL(`file://${__dirname}/index.html`);
    // win.webContents.openDevTools()
  win.on('close', () => {
    // fs.unlink(__dirname + '/assets/css/main.css')
  });
}

app.on('ready', () => {
  // compileSass()
  createWindow();
});

ipc.on('insert-error', (ev, err) => {
  dialog.showErrorBox('Insertion error',
    `There was an error in inserting your task:\n${err}`);
});

@@ -194,16 +194,19 @@
 -sass')%0A
+// 
 const fs
@@ -228,11 +228,11 @@
 );%0A%0A
-var
+let
  win
@@ -617,16 +617,17 @@
 ght: 600
+,
 %0A  %7D);%0A 

Fix eslint errors - 1