Last active
July 30, 2017 04:48
-
-
Save mkdesignn/a504d4911678da73fc7aacd2554f39fb to your computer and use it in GitHub Desktop.
vue and elixir
This file contains 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
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