使用gulp+vue

2017-07-25  本文已影响0人  守心向暖

直接使用vue.js会因为es6编译失败,解决方法

var contact = require('gulp-concat');
gulp.task('scripts', function () {
    return gulp.src('app/scripts/**/*.js')
        .pipe($.jshint())
        .pipe(contact('vue.min.js'))
        .pipe($.jshint.reporter(require('jshint-stylish')))
        .pipe($.size());
});
上一篇 下一篇

猜你喜欢

热点阅读