V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
youchoudeyu
V2EX  ›  Vue.js

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

  •  
  •   youchoudeyu · 2017-11-01 15:22:28 +08:00 · 4607 次点击
    这是一个创建于 2358 天前的主题,其中的信息可能已经有所发展或是发生改变。

    参考的是 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

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1150 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:27 · PVG 02:27 · LAX 11:27 · JFK 14:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.