From 0227c25e4ed573d3095ada3f9c9a4ba5f18b0de5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 20 一月 2021 10:53:01 +0800 Subject: [PATCH] 2021-01-20 --- scripts/build.js | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index a8c7bc6..a8cd5a2 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -3,6 +3,7 @@ // Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = 'production'; process.env.NODE_ENV = 'production'; +process.env.GENERATE_SOURCEMAP = 'false'; // Makes the script crash on unhandled rejections instead of silently // ignoring them. In the future, promise rejections that are not handled will @@ -66,6 +67,8 @@ }) .then( ({ stats, previousFileSizes, warnings }) => { + // 鍒犻櫎鎺у埗鍙癱ss寮曠敤椤哄簭璀﹀憡淇℃伅 + 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')); -- Gitblit v1.8.0