English | 简体中文
yarn add -D @omni-door/gulp-plugin-vue-sfc
In gulpfile.js
:
import { src, dest } from 'gulp';
import VueSFCPlugin from '@omni-door/gulp-plugin-vue-sfc';
function compileVueSFC() {
return src('./src/**/*.vue')
.pipe(VueSFCPlugin())
.pipe(dest('./dist'))
}
For debugging or maintenance, you can clone the whole git repository and run the project.
git clone --depth 1 git@github.com:omni-door/gulp-plugin-vue-sfc.git
cd gulp-plugin-vue-sfc
yarn && yarn dev