rask / gulp-vueify

Compile .vue files using vueify without Browserify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-vueify

Compile *.vue component files using vueify without Browserify. This plugin is useful for Electron apps, because Browserify and webpack are overkill for Electron apps.

For developing non-Electron apps, in other words normal web apps, this plugin is not necessary in most cases. Instead, just use webpack+vue-loader or Browserify+vueify directly in your gulpfile.js.

Installation

npm install gulp-vueify --save-dev

Typically you will also have to do:

npm install vueify-insert-css babel-core babel-plugin-transform-runtime babel-preset-es2015 --save-dev

Usage

var vueify = require('gulp-vueify');

gulp.task('vueify', function () {
  return gulp.src('components/**/*.vue')
    .pipe(vueify())
    .pipe(gulp.dest('./dist'));
});

API

vueify([config])

config

Config for vueify. See vueify document for details. vue.config.js file also works.

About

Compile .vue files using vueify without Browserify


Languages

Language:JavaScript 100.0%