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

Vue-template-compiler 和 vue-loader 的关系是怎么样的?马上就要合二为一了?

  •  
  •   youchoudeyu · Nov 1, 2017 · 5491 views
    This topic created in 3106 days ago, the information mentioned may be changed or developed.

    参考的是 vue-cli 的 webpack-simple 的模板,发现只包含 vue-loader 没有 vue-template-compiler 是不行的,看了一下 npm 上尤关于这个插件的解析,有这样的一段话

    This package can be used to pre-compile Vue 2.0 templates into render functions to avoid runtime-compilation overhead and CSP restrictions. You will only need it if you are writing build tools with very specific needs. In most cases you should be using vue-loader or vueify instead, both of which use this package internally.

    自己觉得云里雾里,这个 will 指的是现在还是需要的咯?求助各位了。

    https://www.npmjs.com/package/vue-template-compiler

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