During runtime, I'm getting process is not defined error, because some parts of the config files have process.env.* which should be replaced during the build time.
Is there anyway to replace process.env.* using worker-plugin?
I have tried this so far but it's still not working:
const Dotenv = require('dotenv-webpack');
new WorkerPlugin({
plugins: [
new Dotenv({
path: './.env',
systemvars: true,
}),
],
})
During runtime, I'm getting
process is not defined
error, because some parts of the config files haveprocess.env.*
which should be replaced during the build time.Is there anyway to replace
process.env.*
usingworker-plugin
?I have tried this so far but it's still not working: