]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/config/webpack.prod.js
Share models between server and client
[github/Chocobozzz/PeerTube.git] / client / config / webpack.prod.js
index c27a4f4b03e46599a4526a49d4659d3d8ff0cf93..1484e2ac24a8712b718454a0f3e381164c4a8edc 100644 (file)
@@ -123,13 +123,14 @@ module.exports = function (env) {
         'ENV': JSON.stringify(METADATA.ENV),
         'HMR': METADATA.HMR,
         'API_URL': JSON.stringify(METADATA.API_URL),
+        'process.version': JSON.stringify(process.version),
         'process.env': {
           'ENV': JSON.stringify(METADATA.ENV),
           'NODE_ENV': JSON.stringify(METADATA.ENV),
           'HMR': METADATA.HMR
         }
       }),
-/**
+      /**
       * Plugin: UglifyJsPlugin
       * Description: Minimize all JavaScript output of chunks.
       * Loaders are switched into minimizing mode.
@@ -269,7 +270,7 @@ module.exports = function (env) {
       global: true,
       crypto: 'empty',
       fs: 'empty',
-      process: false,
+      process: true,
       module: false,
       clearImmediate: false,
       setImmediate: false