fix errors

This commit is contained in:
Phillip Thelen
2024-04-02 19:14:53 +02:00
parent 4fdd064cd6
commit 5ce12d97be
6 changed files with 23 additions and 12 deletions

View File

@@ -39,6 +39,8 @@ envVars
envObject[`process.env.${key}`] = `'${nconf.get(key)}'`;
});
console.log(envObject)
const webpackPlugins = [
new webpack.DefinePlugin(envObject),
new webpack.ContextReplacementPlugin(/moment[\\/]locale$/, /^\.\/(NOT_EXISTING)$/),
@@ -56,6 +58,11 @@ module.exports = {
},
],
},
resolve: {
fallback: {
"timers": require.resolve("timers-browserify")
},
},
plugins: webpackPlugins,
},
chainWebpack: config => {