weixin_39996496 2020-11-29 16:55 采纳率: 0%
浏览 0

Guides - Tree Shaking and Production Rewrites

This continues our work #1258 and resolves most of the issues mentioned in #1331. It is a WIP though, we still need to populate the TODO code blocks and I'm currently working on updating the Production guide which may take a bit longer.

Resolves #1331 Related #1258

cc

该提问来源于开源项目:webpack/webpack.js.org

  • 写回答

5条回答 默认 最新

  • weixin_39996496 2020-11-29 16:55
    关注

    Ok I'm still working on this a little (e.g. some links and examples are missing) but for the most part the outline of these is pretty much good to go in my mind. if either of you have some time to review and let me know your thoughts I'd appreciate it.

    Also anyone whose contributed to this guide in the past...

    , , , , , , , , ,

    Please feel free to review as well. My goal is not to blow away any previous work, just to synchronize the guide with our others (#1258) and make it a bit more approachable.

    I put a little TODO about the LoaderOptionsPlugin at the bottom... this is mentioned in the current one I just wanted to clarify that it is still relevant. This is still included by --optimize-minimize to easily indicate to all loaders that they should minimize their output and not output dev logs (debug)?

    The way I broke this down I think should make it easy to add small targeted sections on each configuration change recommended for production. For example, if the LoaderOptionsPlugin is still relevant, I'll just add another small section that introduces it.

    评论

报告相同问题?