Created
November 24, 2019 17:05
-
-
Save jrichardsz/1d11120dab4764f4d7f42faf6460997f to your computer and use it in GitHub Desktop.
inject global javascript variable using webpack
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
export DEV_SETTINGS_URL=http://localhost:6666/settings.json | |
plugins: [ | |
new webpack.DefinePlugin({ | |
DEV_SETTINGS_URL: JSON.stringify(process.env.DEV_SETTINGS_URL) | |
}) | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment