Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sobird/gulp-plugin-vue

Gulp plugin for compiling Vue single file components
https://github.com/sobird/gulp-plugin-vue

Last synced: 6 days ago
JSON representation

Gulp plugin for compiling Vue single file components

Awesome Lists containing this project

README

        

# gulp-plugin-vue
Gulp plugin for compiling Vue single file components

## Usage

`gulpfile.js`

```js
const { src, dest } = require('gulp');
const gulpPluginVue = require('gulp-plugin-vue');

module.exports.vue = function () {
return src('./test/*.test.vue')
.pipe(gulpPluginVue())
.pipe(dest('output'));
}
```

```bash
$ gulp vue
```

## API
gulpPluginVue([options])

#### Options

- `runtime`
- Type: `boolean`
- Default: `true`

- `outputSourceRange`
- Type: `boolean`
- Default: `false`