Fix DefinePlugin "Conflicting values for 'process.env'" warning

This commit is contained in:
Linus Groh
2022-03-15 22:46:56 +00:00
parent f3cbf877f9
commit 8ac24c99aa
+1 -3
View File
@@ -10,9 +10,7 @@ module.exports = {
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
"process.env": {
PACKAGE_VERSION: `"${version}"`,
},
"process.env.PACKAGE_VERSION": `"${version}"`,
}),
new MomentLocalesPlugin(),
],