Gem 一覧へ戻る
jaeming/vue-cli-plugin-pug(新しいタブで開きます)
主要言語: JavaScript
Vue CLI 3 plugin to add pug templating to your components
- star 数
- 44
- watcher 数
- 1
- fork 数
- 5
- issue 数
- 3
- 最終更新
- 2020/11/13
主要言語: JavaScript
Vue CLI 3 plugin to add pug templating to your components
Vue CLI 3 plugin to add pug templating to your components and compilation of .pug template files
Either add the plugin from the vue ui interface, or run the following in your Vue-cli 3 project:
vue add pug
You can now start using pug templates in your components:
<template lang='pug'> div h1 Hello World! </template>
The plugin will also convert .pug files to html, so you can add entries to vue.config.js and get a (build) output file of ./dist/public/index.html:
module.exports = { pages: { index: { entry: './src/main.js', template: './src/index.pug' } } }