Last active
April 22, 2020 08:19
-
-
Save 0x1ad2/bae93bd0f15d7f54f54fa019edcc2609 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("dotenv").config(); | |
const path = require("path"); | |
const Dotenv = require("dotenv-webpack"); | |
module.exports = { | |
webpack: config => { | |
config.plugins = config.plugins || []; | |
config.plugins = [ | |
...config.plugins, | |
new Dotenv({ | |
path: path.join(__dirname, ".env"), | |
systemvars: true | |
}) | |
]; | |
return config; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment