From ecacd145e02978af0b24269749710ea3d3937f9c Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 1 Apr 2024 13:38:04 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Config=20for=20Vue=20dev=20serve?= =?UTF-8?q?r,=20to=20use=20user-data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vue.config.js b/vue.config.js index fd7b34ce..2e6007ef 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,6 +3,8 @@ * See docs for all config options: https://cli.vuejs.org/config */ +const path = require('path'); + // Get app mode: production, development or test const mode = process.env.NODE_ENV || 'production'; @@ -28,6 +30,16 @@ const configureWebpack = { }, }; +// Development server config +const devServer = { + contentBase: [ + path.join(__dirname, 'public'), + path.join(__dirname, 'user-data'), + ], + watchContentBase: true, + publicPath: '/', +}; + // Application pages const pages = { dashy: { @@ -43,6 +55,7 @@ module.exports = { integrity, configureWebpack, pages, + devServer, chainWebpack: config => { config.module.rules.delete('svg'); },