require('log-timestamp');

const exec = require('child_process').exec;
const args = process.argv.slice(2);

if (args.length < 4) {
  console.error('\x1b[31m', 'Please provide paths to node_modules, the input and the output directory and output file');
} else {
  exec(`node ${args[0]}/.bin/node-sass ${args[1]} -o ${args[2]} --source-map true --include-path ${args[0]}`, (err) => {
    if (err) {
      return console.error('\x1b[31m', err);
    }

    console.log('\x1b[32m', `CSS built to file ${args[3]}`);
  });
}

@@ -267,59 +267,37 @@
 c(%60n
-ode $%7Bargs%5B0%5D%7D/.bin/node-
+px 
 sass 
+-I 
 $%7Bargs%5B
-1
+0
 %5D%7D
- -o
  $%7Bargs%5B
 2%5D%7D 
@@ -296,53 +296,20 @@
 rgs%5B
-2%5D%7D --source-map true --include-path 
+1%5D%7D:
 $%7Bargs%5B
-0
+2
 %5D%7D%60,

Update css script to use sass isntead of node-sass.