Code Monkey home page Code Monkey logo

Comments (7)

jiaming743 avatar jiaming743 commented on July 18, 2024

文档主页上写的压缩体积是我之前使用npm publish命令发布组件库时,npm自动将库打包压缩后的体积,而且由于现在发布时携带了开发源码和编译后文件及README文件,体积会比之前大。而且在实际开发中,Vue应该会自动把你导入的组件进行压缩。文档主页的体积数据已过时,很快将会更新。

from datav.

ToMissYou avatar ToMissYou commented on July 18, 2024

您好,谢谢您的解答。
不过,我的疑惑是:是想单独使用而不通过node。就如同正常引用
例如:<script type="application/javascript" src="xxx.js"></script>
但是目前我尝试了很多方法都没能正常编译出压缩版的文件。

from datav.

jiaming743 avatar jiaming743 commented on July 18, 2024

后续将推出UMD版,便于script标签直接引入,敬请期待

from datav.

jiaming743 avatar jiaming743 commented on July 18, 2024

如果尝试自己打包编译,入口文件应设置为lib/index.js

from datav.

ToMissYou avatar ToMissYou commented on July 18, 2024

好的,谢谢。

from datav.

jiaming743 avatar jiaming743 commented on July 18, 2024

@ToMissYou UMD版 直接可以script标签引入的 中午会提到库中的dist文件夹中

from datav.

jiaming743 avatar jiaming743 commented on July 18, 2024

@ToMissYou UMD版已上传,不过只是简单编译,没有压缩,以后会优化编译过程,减小编译后体积,可以先用用看,在引入Vuescript后直接引入,就会自动把组件注册为全局组件,尚未仔细测试,如有问题可以及时反馈

from datav.

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.