diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-25 15:04:58 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-25 15:04:58 +0200 |
commit | 0431e150b2df53d2de7c43ef51eecc6f61eb3881 (patch) | |
tree | aab3041c0646816dbe3dbaf25bbff00e4e7a4705 /packages | |
parent | 3a7b1c8d819a3de5e553e20ffd5ca51aa71c6d38 (diff) |
Replaced requires with imports in the client vue config
Diffstat (limited to 'packages')
-rw-r--r-- | packages/client/vue.config.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/client/vue.config.js b/packages/client/vue.config.js index f35b739..d902c72 100644 --- a/packages/client/vue.config.js +++ b/packages/client/vue.config.js @@ -1,7 +1,8 @@ -const yaml = require("js-yaml"); -const fs = require("fs"); +import yaml from "js-yaml"; +import { readFileSync } from "fs"; +import { join } from "path"; -const settings = yaml.load(fs.readFileSync(`${__dirname}/../../settings.yml`, "utf8")); +const settings = yaml.load(readFileSync(join(__dirname, "../../settings.yml"), "utf8")); module.exports = { devServer: { @@ -30,4 +31,4 @@ module.exports = { return args; }); } -}; +};
\ No newline at end of file |