/* eslint-disable */
var fs = require('fs');
function copyFileSync(srcFile, destFile) {
  var BUF_LENGTH, buff, bytesRead, fdr, fdw, pos;
  BUF_LENGTH = 64 * 1024;
  buff = new Buffer(BUF_LENGTH);
  fdr = fs.openSync(srcFile, 'r');
  fdw = fs.openSync(destFile, 'w');
  bytesRead = 1;
  pos = 0;
  while (bytesRead > 0) {
    bytesRead = fs.readSync(fdr, buff, 0, BUF_LENGTH, pos);
    fs.writeSync(fdw, buff, 0, bytesRead);
    pos += bytesRead;
  }
  fs.closeSync(fdr);
  return fs.closeSync(fdw);
};

/* eslint:enable */
console.log(__dirname);
copyFileSync(__dirname+'/../src/style/_mdl_variables.scss', __dirname+'/../node_modules/material-design-lite/src/_variables.scss');
console.log('MDL variables override in package.json');

/* eslint-disable */
var fs = require('fs');
function copyFileSync(srcFile, destFile) {
    try {
        var BUF_LENGTH, buff, bytesRead, fdr, fdw, pos;
        BUF_LENGTH = 64 * 1024;
        buff = new Buffer(BUF_LENGTH);
        fdr = fs.openSync(srcFile, 'r');
        fdw = fs.openSync(destFile, 'w');
        bytesRead = 1;
        pos = 0;
        while (bytesRead > 0) {
          bytesRead = fs.readSync(fdr, buff, 0, BUF_LENGTH, pos);
          fs.writeSync(fdw, buff, 0, bytesRead);
          pos += bytesRead;
        }
        fs.closeSync(fdr);
        return fs.closeSync(fdw);
    } catch(error) {
        console.log(error);
    }
};

copyFileSync(__dirname + '/../src/style/_mdl_variables.scss', __dirname + '/../node_modules/material-design-lite/src/_variables.scss');
console.log('Material design lite SASS variables overriden !');

Secure mdl variables copy