We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ada8cef commit 53eb58dCopy full SHA for 53eb58d
videochat-conf/webpack.config.js
@@ -3,11 +3,9 @@ const path = require("path");
3
const webpack = require('webpack')
4
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
5
const CopyWebpackPlugin = require("copy-webpack-plugin");
6
-let cubeConfigJSON = void 0
7
8
-if (fs.existsSync('./cubeConfig.json')) {
9
- cubeConfigJSON = require('./cubeConfig.json')
10
-}
+const configJSONPath = path.join(__dirname, 'cubeConfig.json')
+const cubeConfigJSON = fs.existsSync(configJSONPath) ? require(configJSONPath) : void 0
11
12
module.exports = env => ({
13
mode: env.production ? "production" : "development",
0 commit comments