Giter Site home page Giter Site logo

Comments (9)

sorrycc avatar sorrycc commented on May 23, 2024

npm run build -- --debug 不压缩试试?内存不足感觉是压缩导致的。

from dva-example-user-dashboard.

sage-z avatar sage-z commented on May 23, 2024

@sorrycc 谢谢!不压缩确实可以,不过打出来的包有105M = =, 我要怎样做才可以压缩呢?

from dva-example-user-dashboard.

sorrycc avatar sorrycc commented on May 23, 2024

这么大的项目。。如果不需要保密的话可以把源码发我研究下怎么优化。(sorrycc#gmail.com)

from dva-example-user-dashboard.

sorrycc avatar sorrycc commented on May 23, 2024

压缩可以在 build 完成后单独做,用 uglifyjs 。

from dva-example-user-dashboard.

sorrycc avatar sorrycc commented on May 23, 2024

105M 可以从公用代码,优化依赖等方面多考虑考虑,应该有很多优化空间的。

from dva-example-user-dashboard.

sage-z avatar sage-z commented on May 23, 2024

@sorrycc 我把api摘出来发给你吧!谢谢了,主要不是异步加载页面么,然后每个页面都有一套,打包后一个页面大概2M,压缩后估计就300k吧,是[email protected]吧?

from dva-example-user-dashboard.

sage-z avatar sage-z commented on May 23, 2024

@sorrycc 很抱歉好像被当成垃圾邮件了

from dva-example-user-dashboard.

syaivin avatar syaivin commented on May 23, 2024

@sorrycc @Zegapaiz 我的项目也碰到你这个问题了,你有方法解决了吗?

from dva-example-user-dashboard.

sage-z avatar sage-z commented on May 23, 2024

@syaivin sorrycc/roadhog#405

from dva-example-user-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.