Skip to content

Instantly share code, notes, and snippets.

@daphen
Last active February 18, 2016 10:23
Show Gist options
  • Save daphen/265e09551921e17d3638 to your computer and use it in GitHub Desktop.
Save daphen/265e09551921e17d3638 to your computer and use it in GitHub Desktop.
Hot reload problems
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