king
2 天以前 047dbd742341e268ca772eda8d2ff0b6ba09cb44
scripts/build.js
@@ -1,4 +1,4 @@
'use strict';
// 'use strict';
// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'production';
@@ -67,6 +67,8 @@
  })
  .then(
    ({ stats, previousFileSizes, warnings }) => {
      // 删除控制台css引用顺序警告信息
      warnings = warnings.filter(warning => !/Conflicting order between/ig.test(warning))
      if (warnings.length) {
        console.log(chalk.yellow('Compiled with warnings.\n'));
        console.log(warnings.join('\n\n'));