Skip to content

Instantly share code, notes, and snippets.

@deckvig
Last active May 3, 2018 13:38
Show Gist options
  • Select an option

  • Save deckvig/059e6dd42ff4ebcac189 to your computer and use it in GitHub Desktop.

Select an option

Save deckvig/059e6dd42ff4ebcac189 to your computer and use it in GitHub Desktop.
Laravel gulp-vue-webpack config
var elixir = require('laravel-elixir');
require('laravel-elixir-webpack');
elixir(function (mix) {
mix.webpack('./resources/assets/js/app.js',{
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/
},
{
test: /\.vue$/,
loader: 'vue'
},
]
},
vue: {
loaders: {
js: 'babel'
}
},
},'./public/js/app.js').browserSync({proxy:'app.app'});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment