diff --git a/package.json b/package.json index 8945a8dd..1db21387 100644 --- a/package.json +++ b/package.json @@ -119,6 +119,7 @@ "through2": "^2.0.3", "validator": "^7.0.0", "validator-as-promised": "^1.0.2", + "vue-template-es2015-compiler": "^1.5.2", "winston": "^2.3.1", "yargs": "^8.0.1" }, diff --git a/server/libs/config.js b/server/libs/config.js index bceb7dce..482a8d5c 100644 --- a/server/libs/config.js +++ b/server/libs/config.js @@ -31,9 +31,13 @@ module.exports = (confPaths) => { let appdata = {} try { - appconfig = yaml.safeLoad(_.deepMap(fs.readFileSync(confPaths.config, 'utf8'), c => { - return _.replace(c, (/\$\([A-Z0-9_]+\)/g, (m) => { return process.env[m] })) - })) + appconfig = yaml.safeLoad( + _.replace( + fs.readFileSync(confPaths.config, 'utf8'), + (/\$\([A-Z0-9_]+\)/g, + (m) => { return process.env[m] }) + ) + ) appdata = yaml.safeLoad(fs.readFileSync(confPaths.data, 'utf8')) appdata.regex = require(confPaths.dataRegex) } catch (ex) { diff --git a/yarn.lock b/yarn.lock index 283cc7ed..b06d71b7 100644 Binary files a/yarn.lock and b/yarn.lock differ