百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

eleventy-plugin-vue

> 前端框架
开源

在 Eleventy 中使用 Vue.js 模板和 Vue.js 单文件组件。

194 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

在 Eleventy 中使用 Vue.js 模板和 Vue.js 单文件组件。

eleventy-plugin-vue for Vue 3 ⚡️

Adds Vue Single File Component (SFC) support to Eleventy. Eleventy processes .vue SFC files as Eleventy templates and outputs zero-bundle size server rendered components.

Read more about the goals of this plugin (and a full tutorial!) at Eleventy and Vue, a match made to power Netlify.com

Installation

npm install @11ty/eleventy-plugin-vue
  • 1.x requires Eleventy 1.0.0 or newer
  • 0.2.x encouraged to use Eleventy 0.11.1 or newer (for incremental Vue component builds)
  • 0.1.x requires Eleventy 0.11.0 or newer

Changelog

  • 1.0.0 (Milestone) Works with Vue 3. Adds Windows support.
  • 0.6.x (Milestone)
  • 0.3.1 (Milestone)
  • 0.3.0 (Milestone) More consistent incremental builds. Performance improvements.
  • 0.2.1 (Milestone) adds incremental builds for Eleventy Vue components to avoid unnecessary repeat work. Fixes bug with permalink strings returned from Vue Single File Component data.
  • 0.1.x converted to use a Single File Components for everything (templates, components, etc), instead of 0.0.x’s string templates with front matter.

Features

  • Builds *.vue’s Single File Components, both in the input directory and in Eleventy’s includes directory. .vue files in the includes directory are available for import. Same as any Eleventy template syntax, includes do not write files to your output directory.
  • Works with Vue’s Single File Components, including with scoped CSS.
  • Data from SFC files feeds into the data cascade (similar to front matter)
  • All JavaScript Template Functions (see https://www.11ty.dev/docs/languages/javascript/#javascript-template-functions), Universal Filters, Universal Shortcodes, Universal Paired Shortcodes are available as Vue methods (global functions to use in templates and child components).
    • For example, you can use the url Universal Filter like url("/my-url/") in your Vue templates.
  • page Eleventy supplied data is also available globally in all components.

Not Yet Available

  • Using .vue templates as Eleventy layouts is not yet supported. Subscribe to this issue at #5.
  • Does not yet embed any client-side JavaScript from inside single file components into the output for use on the client.
  • lang on , , or `

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScripteleventyeleventy-pluginvuevuejs

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架