Skip to content

Instantly share code, notes, and snippets.

@mkdesignn
Last active July 30, 2017 04:48
Show Gist options
  • Save mkdesignn/a504d4911678da73fc7aacd2554f39fb to your computer and use it in GitHub Desktop.
Save mkdesignn/a504d4911678da73fc7aacd2554f39fb to your computer and use it in GitHub Desktop.
vue and elixir
package.json{
{
"devDependencies": {
"gulp": "^3.8.8",
"laravel-elixir": "^6.0.0-15",
"laravel-elixir-vueify": "^1.0.0",
"laravel-elixir-webpack-official": "^1.0.10"
},
"browser": {
"vue": "vue/dist/vue.common.js"
}
}
}
gulpfile.js{
var Elixir = require('laravel-elixir');
require('laravel-elixir-vue-2');
Elixir(mix => {
mix.webpack('app.js');
Elixir.webpack.mergeConfig({
// module: {
// loaders: [
// {
// test: /\.vue$/, loader: 'vue-loader'
// }
// ]
// },
resolve: {
extensions: ['', '.js', '.vue', '.json'],
alias: {vue: './js/vue.js'}
// alias: {
// 'vue$': 'vue/dist/vue.common.js',
// }
}
});
});
}
npm install laravel-elixir-vue-2
npm install laravel-elixir-webpack-official --save-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment