Git Product home page Git Product logo

Comments (6)

hechuanhua avatar hechuanhua commented on July 24, 2024

目前如果是生产环境的话还有问题,正在修复,但是如果是开发的话是没问题的

from blog.

GZWZC avatar GZWZC commented on July 24, 2024

@hechuanhua 但是我看你线上是没有问题的,

from blog.

GZWZC avatar GZWZC commented on July 24, 2024

@hechuanhua 还有 我想问一下
我有一个项目,entry入口,有8个路由页面,我没有用按需加载的时候直接在index.html里引入bundle.js,bundle.js大小为2.8M。
如果我用了按需加载后,我还需要在index.html引用bundle.js吗?如果不引用的话,页面没有加载任何js,如果引用了,network里的先加载bundle.js(2.2M),再引入对应页面的chunk.js。

这样是正常吗?

from blog.

hechuanhua avatar hechuanhua commented on July 24, 2024

线上暂时没有加服务端渲染,这个项目里面现在是加了服务端渲染的,如果是生产环境的话有点问题,正在开发

from blog.

hechuanhua avatar hechuanhua commented on July 24, 2024

你用了按需加载在主页肯定也要引入bundle,相当于主页的chunk就是bundle.js,然后你跳到其他的路由再去加载对应的chunk

from blog.

GZWZC avatar GZWZC commented on July 24, 2024

好 谢谢 参考完你的webpack.config.js了 发现我没有利好用html-webpack-plugin

from blog.

Related Issues (11)

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.