Giter Site home page Giter Site logo

Comments (7)

yanhaijing avatar yanhaijing commented on July 18, 2024

这样写的就是异步的

require.async('xxx', function () {});

from fis3-base.

simplees avatar simplees commented on July 18, 2024

回复好快,谢谢解答。但是怎么在打包的时候排除掉异步加载的 component 啊。
.match('/components/**.js', { packTo: '/pkg/components.js' })
现在的打包方式,好像会把所有组件全部都打包成 components.js

from fis3-base.

yanhaijing avatar yanhaijing commented on July 18, 2024

components 里的不打包,或者改成白名单,只打包指定资源

from fis3-base.

yanhaijing avatar yanhaijing commented on July 18, 2024

现在好像没办法 异步资源不打包!!!

from fis3-base.

yanhaijing avatar yanhaijing commented on July 18, 2024

fis的打包和webpack的打包不一样!!!

from fis3-base.

simplees avatar simplees commented on July 18, 2024

FIS可能要一个大的版本更新,才能跟上现在前端发展的脚步吧。不过一些传统类型的网站,fis还是非常顺手的。我就同时在用fis和webpack。

from fis3-base.

yanhaijing avatar yanhaijing commented on July 18, 2024

webpack那个 common-chunk 还没fis这种手动打包好用吧。。。

from fis3-base.

Related Issues (17)

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.