javascript - Gulp watch of changes not working -


i created gulpfile.js , put inside js file gulp .. main problem .. gulp not working in each changes in js file changes in component.vue not showing @ run time !! show int first time run gulp ! why ?

webpack.config.js

module.exports = {  entry: './resources/assets/js/accountvue.js', output: {     filename: 'app.js' }, devtool: 'source-map', resolve: {     alias: {         'vue$': 'vue/dist/vue.js'     } }, module: {     loaders: [         {             test: /\.js$/,             loader: 'babel',             exclude: /node_modules/,             query: {                 "presets": ["es2015"],                 // "plugins": ["transform-runtime"],                 "comments": false             }         },         {             test: /\.vue$/,             loader: 'vue'         }     ] } }; 

gulpfile.js

var elixir = require('laravel-elixir');  var gulp       = require('gulp'), webpack    = require('webpack-stream'), watch = require('gulp-watch');  gulp.task('script', () => {  "use strict";  return gulp.src('./resources/assets/js/accountvue.js')     .pipe(webpack(require('./webpack.config.js')))     .pipe(gulp.dest('./public/js/'));  });  gulp.task('watch', function(){  gulp.watch('./resources/assets/js/accountvue.js',['script']); });  gulp.task('default', ['script','watch']); 


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -