Giter Site home page Giter Site logo

Comments (3)

javaLuo avatar javaLuo commented on May 27, 2024

可以用react-loadble (https://github.com/jamiebuilds/react-loadable)
专门用来做懒加载的。你把那些比较重量级的路由页面都配置一下,打包后就自动按需加载了。

from react-luo.

wangjunwei910208 avatar wangjunwei910208 commented on May 27, 2024

我安装bundle-loader,按网上常用教程如:http://blog.csdn.net/qq_38054239/article/details/78844844 配置后,为啥Bundle.js一直报错啊

from react-luo.

javaLuo avatar javaLuo commented on May 27, 2024

你肯定哪里没写对吧
https://github.com/javaLuo/react-luo/tree/react-luo-webpack
这个里面我就是用bundle-loader配的代码分割,可以参考一下

from react-luo.

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.