Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gxlmyacc/vue-indent-pug-loader

a vue pug template loader that the first line has space indent
https://github.com/gxlmyacc/vue-indent-pug-loader

pug pug-loader vue webpack

Last synced: 9 days ago
JSON representation

a vue pug template loader that the first line has space indent

Awesome Lists containing this project

README

        

# vue-indent-pug-loader

this is a vue pug template loader that the first line has space indent.

## Install

```bash
npm install vue-indent-pug-loader --save-dev
```

or:

```bash
yarn add vue-indent-pug-loader --dev
```

## Usage

```js
// webpack config loaders
{
test: /\.pug$/,
oneOf: [
// this applies to in Vue components
{ resourceQuery: /^\?vue/, use: ['vue-indent-pug-loader'] },
// this applies to pug imports inside JavaScript
{ use: ['raw-loader', 'vue-indent-pug-loader'] }
]
},
```