• Webpack打包警告提示文件过大,超过了默认值


     Webpack打包警告提示文件过大,超过了默认值

    asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
    This can impact web performance.
    Assets:
      js/app.97f1754e.js (1.18 MiB)
      css/chunk-vendors.ccb705f1.css (270 KiB)
      js/chunk-vendors.bbb65845.js (2.8 MiB)

     warning                                                                                                                                        
                                                                                                                                                    
    entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
    Entrypoints:                                                                                                                                    
      app (4.25 MiB)
          css/chunk-vendors.ccb705f1.css
          js/chunk-vendors.bbb65845.js
          css/app.c84f6e5f.css
          js/app.97f1754e.js

     解决办法,优化或者关闭提示

      configureWebpack:{
        performance: { // 关闭性能提示
          hints: false,
        },
        optimization:{
          minimize:true,
          splitChunks:{
            chunks: 'all',
          }
        }
      },
  • 相关阅读:
    Event notifications
    twobin博客样式
    Http协议
    ASP.NET Web API自身对CORS的支持: CORS授权检验的实施
    理解计算机系统3
    游标-Oracle游标汇总
    Oracle10g 回收站及彻底删除table : drop table xx purge
    ora-01031:insufficient privileges
    &&运算符和||运算符的优先级问题 专题
    oracle connect by 和start with
  • 原文地址:https://www.cnblogs.com/dafei4/p/15904520.html
Copyright © 2020-2023  润新知