Skip to content
Snippets Groups Projects
Commit 6e13ef5c authored by Alexander Rose's avatar Alexander Rose
Browse files

use webpack.DefinePlugin.runtimeValue for __VERSION__

parent f48e2ab2
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ const sharedConfig = {
],
}),
new webpack.DefinePlugin({
__VERSION__: JSON.stringify(require('./package.json').version),
__VERSION__: webpack.DefinePlugin.runtimeValue(() => JSON.stringify(require('./package.json').version), true),
__VERSION_TIMESTAMP__: webpack.DefinePlugin.runtimeValue(() => `${new Date().valueOf()}`, true),
'process.env.DEBUG': JSON.stringify(process.env.DEBUG)
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment