From 10ecf9bcd54c89be0e82f5507bcfa2e936f6ce23 Mon Sep 17 00:00:00 2001 From: Sebastian De Deyne Date: Tue, 4 Oct 2016 19:51:22 +0200 Subject: [PATCH 1/5] Resolve .vue extensions --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b39efc8..3f0886c 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,8 @@ Elixir.ready(function () { resolve: { alias: { vue: 'vue/dist/vue.js' - } + }, + extensions: ['.js', '.vue'] }, // use buble loader since it is the default in Elixir vue: { From 6e66f3d9ef5a3bb560fd887d2a3972e92848df09 Mon Sep 17 00:00:00 2001 From: Chris Blackwell Date: Wed, 30 Nov 2016 10:01:02 -0500 Subject: [PATCH 2/5] Update vue-loader to version 10.0.0 to work with Vue 2.1 (#21) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b51f7b9..edc917c 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,6 @@ "file-loader": "^0.9.0", "sass-loader": "^4.0.0", "url-loader": "^0.5.7", - "vue-loader": "^9.3.2" + "vue-loader": "^10.0.0" } } From 690a65707bcae87f12278aa92d190efbcd6b3964 Mon Sep 17 00:00:00 2001 From: Luke Policinski Date: Wed, 30 Nov 2016 10:01:14 -0500 Subject: [PATCH 3/5] Update index.js (#23) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3f0886c..d64a928 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ Elixir.ready(function () { // ensure we are using the version of Vue that supports templates resolve: { alias: { - vue: 'vue/dist/vue.js' + vue: 'vue/dist/vue.common.js' }, extensions: ['.js', '.vue'] }, From 336e76e3e93d5f023a4219b8ecc2fdeb435d983f Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 30 Nov 2016 11:15:43 -0500 Subject: [PATCH 4/5] bump deps --- README.md | 24 ++++++++++++++++++++++++ index.js | 5 ++--- package.json | 8 ++++++-- 3 files changed, 32 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4d73553..fe0364b 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,27 @@ elixir(function(mix) { mix.webpack('app.js'); // resources/assets/js/app.js }) ``` + +## Extending/Modifying the Default Config + +From Elixir's docs: + +> If you'd like to leverage more of Webpack's functionality, Elixir will read any webpack.config.js file that is in your project root and factor its configuration into the build process. + +For example, to make Vue use `sass-loader` for `