fix: 'bake' release env variables at build time

This commit is contained in:
Tom Moor
2021-02-12 17:18:55 -08:00
parent 7d244dfa1f
commit b017590033
4 changed files with 18 additions and 5 deletions

View File

@ -50,9 +50,7 @@ module.exports = {
},
plugins: [
new webpack.DefinePlugin({
"process.env.SOURCE_COMMIT": JSON.stringify(process.env.SOURCE_COMMIT),
"process.env.SOURCE_VERSION": JSON.stringify(process.env.SOURCE_VERSION),
"EDITOR_VERSION": JSON.stringify(pkg.version)
EDITOR_VERSION: JSON.stringify(pkg.version)
}),
new webpack.ProvidePlugin({
fetch: 'imports-loader?this=>global!exports-loader?global.fetch!isomorphic-fetch',