Add release to html webpack config (#4883)

Co-authored-by: Arik Fraimovich <arik@arikfr.com>

Co-authored-by: Arik Fraimovich <arik@arikfr.com>
This commit is contained in:
Gabriel Dutra 2020-05-12 04:55:48 -03:00 committed by GitHub
parent baf16d2501
commit 22f0030864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,8 @@ const config = {
new HtmlWebpackPlugin({
template: "./client/app/index.html",
filename: "index.html",
excludeChunks: ["server"]
excludeChunks: ["server"],
release: process.env.BUILD_VERSION || "dev"
}),
new HtmlWebpackPlugin({
template: "./client/app/multi_org.html",
@ -91,7 +92,7 @@ const config = {
},
{
test: /\.html$/,
exclude: [/node_modules/, /index\.html/],
exclude: [/node_modules/, /index\.html/, /multi_org\.html/],
use: [
{
loader: "raw-loader"