error: Grunt :: [BABEL] Note: The code generator has deoptimised the styling of "../js/all.min.js" as it exceeds the max of "500KB". in Sail.js?
error: Grunt :: [BABEL] Note: The code generator has deoptimised the styling of "../js/all.min.js" as it exceeds the max of "500KB". in Sail.js?
为什么我得到
error: Grunt :: [BABEL] Note: The code generator has deoptimised the styling of ".tmp/public/js/@fortawesome/fontawesome-free/js/all.min.js" as it exceeds the max of "500KB".
在 Sail.js 应用程序中处于 生产 模式?请建议我如何修复它?
Error Screenshot
经过多次研究,我发现早期的 babel compress max size 是:100kb。现在他们已将其增加到最大值:500kb。但我仍然有这个错误,要修复它,我们必须插入一个小代码片段。
在 Sails JS App v.1.x - 转到
task->config->babel.js
并插入此代码:compact: false
里面 :
dist: {
options: {
presets: [require('sails-hook-grunt/accessible/babel-preset-env')],
compact: false
},
...
....
}
为什么我得到
error: Grunt :: [BABEL] Note: The code generator has deoptimised the styling of ".tmp/public/js/@fortawesome/fontawesome-free/js/all.min.js" as it exceeds the max of "500KB".
在 Sail.js 应用程序中处于 生产 模式?请建议我如何修复它?
Error Screenshot
经过多次研究,我发现早期的 babel compress max size 是:100kb。现在他们已将其增加到最大值:500kb。但我仍然有这个错误,要修复它,我们必须插入一个小代码片段。
在 Sails JS App v.1.x - 转到
task->config->babel.js
并插入此代码:compact: false 里面 :
dist: {
options: {
presets: [require('sails-hook-grunt/accessible/babel-preset-env')],
compact: false
},
...
....
}