From da817d35c44a7f5a70279139f09515cc9fb8b891 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 21 Dec 2018 09:04:25 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Build=20js=20with=20.env?= =?UTF-8?q?=20from=20parent=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Citharel --- js/vue.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/vue.config.js b/js/vue.config.js index 92de23e28..8edae71fa 100644 --- a/js/vue.config.js +++ b/js/vue.config.js @@ -1,4 +1,5 @@ const Dotenv = require('dotenv-webpack'); +const path = require('path'); module.exports = { lintOnSave: false, @@ -6,7 +7,7 @@ module.exports = { outputDir: '../priv/static', configureWebpack: { plugins: [ - new Dotenv(), + new Dotenv({ path: path.resolve(process.cwd(), '../.env') }), ], }, };