saw that webpack inject the environment variables in bundle!
my code is like
//server.js
console.log(process.env.JWT_SECRET);
and webpack build
//server.bundle.js
console.log('secret as a plain text!');
how can tell webpack to don't touch that?
this shouldn't happen, are you using a plugin that transforms text?
Обсуждают сегодня