node.js - ES2015 not working with gulp-browserify and vueify -


i'm working on website in node.js , use vueify compile using gulp, it's not working. i've tried using babelify handle es2015, gulp still gives me errors when want use import app './app.vue' example

this code

var gulp = require('gulp'); var plumber = require('gulp-plumber'); var path = require('path'); var browserify = require('browserify'); var vueify = require('vueify');  gulp.task('build', function() { return gulp.src(path.join(resdir, 'vue/main.js')) .pipe(browserify({ transform: ['vueify', 'babelify'], debug: true })) .pipe(gulp.dest(path.join(destdir, 'javascript'))) }); 

and main.js

import vueresource 'vue-resource' import vue 'vue' import app './app.vue'  vue.config.devtools = true  vue.use(vueresource)  /* eslint-disable no-new */ new vue({   el: 'body',   components: { app } }) 


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -