diff --git a/src/base.js b/src/base.js index 409a9d4..94bc2a8 100644 --- a/src/base.js +++ b/src/base.js @@ -1,5 +1,5 @@ import Disgrow from "disgrow"; -import c from "../src/config"; +import { bot_id } from "../src/config"; export function getRandomColor() { let letters = "0123456789ABCDEF"; @@ -11,7 +11,7 @@ export function getRandomColor() { } export async function getInfo() { - const bot = new Disgrow(c.bot_id); + const bot = new Disgrow(bot_id); const info = await bot.myStats().catch(err => { alert("Error: " + err); }); diff --git a/test/api.test.js b/test/api.test.js index 5f16d2a..15f1c92 100644 --- a/test/api.test.js +++ b/test/api.test.js @@ -1,5 +1,5 @@ const Disgrow = require("disgrow"); -const c = require("../src/config"); +const { bot_id } = require("../src/config"); -const bot = new Disgrow(c.bot_id); +const bot = new Disgrow(bot_id); bot.myStats().then((res) => { console.log("myStats", res); }); \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index d174b23..0d29c4d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,11 +1,7 @@ -// addition starts here const TerserPlugin = require("terser-webpack-plugin"); const isProd = process.env.NODE_ENV === "production"; -// addition ends here module.exports = { - // addition ends here - // and keep what was already here configureWebpack: { optimization: { minimize: true,