utils/build-css/index.js
function cleanDistDir(dir) {
  /* istanbul ignore else */
  if (dir !== process.cwd()) {
    fs.stat(dir, (err) => {
      if (!err) {
        del.sync([dir]);
      }

      fs.mkdirSync(dir);
    });
  }
}
function cleanDistDir(dir) {
  /* istanbul ignore else */
  if (dir !== process.cwd()) {
    fs.stat(dir, (err) => {
      if (!err) {
        del.sync([dir]);
      }

      fs.mkdirSync(dir);
    });
  }
}
function cleanDistDir ( dir ) { /* istanbul ignore else */ if ( dir !== process . cwd ( ) ) { fs . stat ( dir , ( err ) => { if ( ! err ) { del . sync ( [ dir ] ) ; } fs . mkdirSync ( dir ) ; } ) ; } }
Remove old dist directory and make a new dist directory.
@param {string} dir The dist directory.
Remove old dist directory and make a new dist directory .