V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
vevlins

通过 npm 包来组织多组件的项目有什么需要优化的地方?

  •  
  •   vevlins · May 10, 2018 · 1573 views
    This topic created in 2909 days ago, the information mentioned may be changed or developed.

    我是 webpack 渣渣。

    比如每个组件的 webpack 配置项有什么注意的地方?

    会有重复依赖导致最终 bundle 冗余的情况吗?

    假如 A 包引用的某个 C 依赖是 2.2 版本的,B 包引用的 C 依赖是 2.1 版本的,最后会导致问题吗?

    还有什么其他的注意点呢?尤其是对于可能打包出来的体积过大的一些注意点?

    还望赐教! ♪(・ω・)ノ

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5996 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 01:55 · PVG 09:55 · LAX 18:55 · JFK 21:55
    ♥ Do have faith in what you're doing.