vue-cli-plugin-pug

Vue CLI 3 plugin to add pug templating to your components and compilation of .pug template files
183,888 44
Install
npm install vue-cli-plugin-pug
Latest Version:2.0.0
License:MIT
Last Updated:Nov 13, 2020
Links: GitHub  ·  npm
Maintainer: jaeming

vue-cli-plugin-pug

npm version Vue CLI 3 plugin to add pug templating to your components and compilation of .pug template files

Getting Started

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'
    }
  }
}

Related Packages

vue-cli-plugin-moment

moment.js plugin for vue-cli

28,960 15
@urbanhire.com/vuesable

Vuesable is urbanhire vue component.

877
vue-cli-plugin-nid

这是宁皓网内部项目使用的一个 Vue CLI 插件,在使用了 TypeScript 的 Vue 项目里,可...

778 0

Version History

Version Released License
2.0.0 MIT
1.0.7 MIT
1.0.6 MIT
1.0.5 MIT
1.0.4 MIT