# vue-cli-plugin-pug

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

Latest version **2.0.0** (published 2020-11-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-cli-plugin-pug
pnpm add vue-cli-plugin-pug
yarn add vue-cli-plugin-pug
bun add vue-cli-plugin-pug
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-11-13 |
| First published | 2018-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 44 |
| Author | Benji Dalton |
| Maintainers | jaeming |
| Keywords | vue, vue-cli, pug |

## Links

- npm: https://www.npmjs.com/package/vue-cli-plugin-pug
- Repository: https://github.com/jaeming/vue-cli-plugin-pug
- Issues: https://github.com/jaeming/vue-cli-plugin-pug/issues
- npm.io page: https://npm.io/package/vue-cli-plugin-pug

## Dependencies (3)

- [pug](https://npm.io/package/pug.md) ^3.0.0
- [raw-loader](https://npm.io/package/raw-loader.md) ^4.0.2
- [pug-plain-loader](https://npm.io/package/pug-plain-loader.md) ^1.0.0

## Recent versions

- 2.0.0 (latest) — 2020-11-13
- 1.0.7 — 2018-09-18
- 1.0.6 — 2018-09-17
- 1.0.5 — 2018-07-17
- 1.0.4 — 2018-07-16
- 1.0.3 — 2018-07-16
- 1.0.1 — 2018-07-16
- 1.0.0 — 2018-07-16

## README

# vue-cli-plugin-pug

[![npm version](https://badge.fury.io/js/vue-cli-plugin-pug.svg)](https://badge.fury.io/js/vue-cli-plugin-pug)
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: 
```sh
vue add pug
```
You can now start using pug templates in your components:
```html
<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`:

```js
module.exports = {
  pages: {
    index: {
      entry: './src/main.js',
      template: './src/index.pug'
    }
  }
}
```

---
_Source: https://npm.io/package/vue-cli-plugin-pug · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
