How to use the node-sass.info function in node-sass

To help you get started, we’ve selected a few node-sass examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ice-lab / ice-scripts / packages / ice-scripts / lib / utils / validationSassAvailable.js View on Github external
module.exports = function () {
  try {
    const sassInfo = require('node-sass').info;
    console.log('sassInfo', sassInfo);
  } catch (err) {
    console.error(err.message);
    console.log('');
    console.log(colors.red('Error:'), 'ice-scripts 已终止');
    console.log(colors.green('Info:'), '当前 node-sass 无法运行');
    console.log(colors.green('Info:'), '您可以尝试执行以下命令重装修复:');
    console.log('    ', colors.magenta('npm install node-sass'));
    console.log('');
    process.exit(1);
  }
};
github alibaba / ice / tools / ice-scripts / lib / utils / validationSassAvailable.js View on Github external
module.exports = function () {
  try {
    const sassInfo = require('node-sass').info;
    console.log('sassInfo', sassInfo);
  } catch (err) {
    console.error(err.message);
    console.log('');
    console.log(colors.red('Error:'), 'ice-scripts 已终止');
    console.log(colors.green('Info:'), '当前 node-sass 无法运行');
    console.log(colors.green('Info:'), '您可以尝试执行以下命令重装修复:');
    console.log('    ', colors.magenta('npm install node-sass'));
    console.log('');
    throw err;
  }
};