From 3595cbb48857a1bbdccea6e05945aac792e2ae56 Mon Sep 17 00:00:00 2001 From: Adhatama Date: Mon, 9 Jul 2018 14:02:25 +0700 Subject: [PATCH] #9 Change vue to read conf.json file from webpack --- resources/js/pages/auth/login.vue | 5 ++--- webpack.mix.js | 9 ++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/resources/js/pages/auth/login.vue b/resources/js/pages/auth/login.vue index 8d4db4ce..51300544 100644 --- a/resources/js/pages/auth/login.vue +++ b/resources/js/pages/auth/login.vue @@ -25,7 +25,6 @@ ` - }) + }), + new webpack.DefinePlugin({ + 'process.env': { + REDIRECT_URI: JSON.stringify(confJSON.redirect_uri), + CLIENT_ID: JSON.stringify(confJSON.client_id) + }, + }), ], resolve: { extensions: [