aboutsummaryrefslogtreecommitdiff
path: root/viewer/vue.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/vue.config.js')
-rw-r--r--viewer/vue.config.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/viewer/vue.config.js b/viewer/vue.config.js
index 9b92dc2..f481e4f 100644
--- a/viewer/vue.config.js
+++ b/viewer/vue.config.js
@@ -28,10 +28,10 @@ module.exports = {
28 }, 28 },
29 }, 29 },
30 chainWebpack: (config) => { 30 chainWebpack: (config) => {
31 config.plugins.delete('prefetch'); 31 config.plugins.delete("prefetch");
32 }, 32 },
33 configureWebpack: { 33 configureWebpack: {
34 devtool: 'source-map' 34 devtool: "source-map"
35 }, 35 },
36 productionSourceMap: false, 36 productionSourceMap: false,
37 devServer: { 37 devServer: {
@@ -41,7 +41,7 @@ module.exports = {
41 app.get(`/${process.env.VUE_APP_DATA_URL}*`, (req, res) => { 41 app.get(`/${process.env.VUE_APP_DATA_URL}*`, (req, res) => {
42 const fs = require("fs"); 42 const fs = require("fs");
43 const url = req.url.slice(process.env.VUE_APP_DATA_URL.length); 43 const url = req.url.slice(process.env.VUE_APP_DATA_URL.length);
44 const paramIdx = url.indexOf('?'); 44 const paramIdx = url.indexOf("?");
45 const filepath = paramIdx < 0 ? url : url.substring(0, paramIdx); 45 const filepath = paramIdx < 0 ? url : url.substring(0, paramIdx);
46 const fullpath = `${process.env.VUE_APP_DEVSERVER_CONFIG_PATH}${decodeURIComponent(filepath)}`; 46 const fullpath = `${process.env.VUE_APP_DEVSERVER_CONFIG_PATH}${decodeURIComponent(filepath)}`;
47 const file = fs.readFileSync(fullpath); 47 const file = fs.readFileSync(fullpath);