'bake' release env variables at build time
This commit is contained in:
parent
2a225d81d2
commit
7d244dfa1f
|
@ -50,7 +50,9 @@ module.exports = {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
EDITOR_VERSION: JSON.stringify(pkg.version)
|
"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)
|
||||||
}),
|
}),
|
||||||
new webpack.ProvidePlugin({
|
new webpack.ProvidePlugin({
|
||||||
fetch: 'imports-loader?this=>global!exports-loader?global.fetch!isomorphic-fetch',
|
fetch: 'imports-loader?this=>global!exports-loader?global.fetch!isomorphic-fetch',
|
||||||
|
|
Reference in New Issue