aboutsummaryrefslogtreecommitdiff
path: root/viewer/vue.config.js
diff options
context:
space:
mode:
authorZero~Informatique2020-04-27 22:23:10 +0200
committerZero~Informatique2020-04-28 03:47:50 +0200
commit113bff3c4dcc1976f24df16d4224e1871e665ae0 (patch)
treed10c16f03daf9eda07e65cf53198e7a4cd4742f6 /viewer/vue.config.js
parent53bbb2b65e405aa93f1689faabce9cfa019e6d8f (diff)
downloadldgallery-113bff3c4dcc1976f24df16d4224e1871e665ae0.tar.gz
viewer: tabSize, quote-props, quotes, object-curly-spacing
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);