Last active
February 18, 2016 10:23
-
-
Save daphen/265e09551921e17d3638 to your computer and use it in GitHub Desktop.
Hot reload problems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
browserSync = require('browser-sync'), | |
elixir = require('laravel-elixir'); | |
var b = elixir.config.js.browserify; | |
b.plugins.push({ | |
name: "browserify-hmr", | |
options : {} | |
}); | |
b.transformers.push({ | |
name: "vueify", | |
options : {} | |
}); | |
elixir(function (mix) { | |
mix.browserify('app.js'); | |
mix.browserSync({ | |
files: [ | |
'public/css/*.css', | |
'public/*.html' | |
], | |
proxy: 'localhost:8888/vueifybaseproject/public' | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment