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

2017-11-01 15:22:28 +08:00
 youchoudeyu

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

4624 次点击
所在节点    Vue.js
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/402636

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX