aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-25 19:02:40 +0200
committerHampusM <hampus@hampusmat.com>2021-07-25 19:02:40 +0200
commita32365a7fea97fbf2a7b906ea77415ab744e7b43 (patch)
treedcdb3ce5169abb71169852dcd79cd3cb61062bc6
parent0431e150b2df53d2de7c43ef51eecc6f61eb3881 (diff)
Revert "Replaced requires with imports in the client vue config"
This reverts commit 0431e150b2df53d2de7c43ef51eecc6f61eb3881.
-rw-r--r--packages/client/vue.config.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/client/vue.config.js b/packages/client/vue.config.js
index d902c72..f35b739 100644
--- a/packages/client/vue.config.js
+++ b/packages/client/vue.config.js
@@ -1,8 +1,7 @@
-import yaml from "js-yaml";
-import { readFileSync } from "fs";
-import { join } from "path";
+const yaml = require("js-yaml");
+const fs = require("fs");
-const settings = yaml.load(readFileSync(join(__dirname, "../../settings.yml"), "utf8"));
+const settings = yaml.load(fs.readFileSync(`${__dirname}/../../settings.yml`, "utf8"));
module.exports = {
devServer: {
@@ -31,4 +30,4 @@ module.exports = {
return args;
});
}
-}; \ No newline at end of file
+};