diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 15:19:43 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 15:19:43 +0200 |
commit | 1840c2f7c91f5f89602a3683d85b0a9df1454855 (patch) | |
tree | 7efc223222e2d318abfaef0839a79e23be727cea /client/config/webpack.prod.js | |
parent | 8635a2c70cc24a4c52558162ac058de95750271f (diff) | |
download | PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.tar.gz PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.tar.zst PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.zip |
Update webpack stack
Diffstat (limited to 'client/config/webpack.prod.js')
-rw-r--r-- | client/config/webpack.prod.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.js index 9bb7306af..3f063c7c6 100644 --- a/client/config/webpack.prod.js +++ b/client/config/webpack.prod.js | |||
@@ -26,7 +26,8 @@ const METADATA = webpackMerge(commonConfig({env: ENV}).metadata, { | |||
26 | host: HOST, | 26 | host: HOST, |
27 | port: PORT, | 27 | port: PORT, |
28 | ENV: ENV, | 28 | ENV: ENV, |
29 | HMR: false | 29 | HMR: false, |
30 | API_URL: '' | ||
30 | }) | 31 | }) |
31 | 32 | ||
32 | module.exports = function (env) { | 33 | module.exports = function (env) { |
@@ -125,6 +126,7 @@ module.exports = function (env) { | |||
125 | new DefinePlugin({ | 126 | new DefinePlugin({ |
126 | 'ENV': JSON.stringify(METADATA.ENV), | 127 | 'ENV': JSON.stringify(METADATA.ENV), |
127 | 'HMR': METADATA.HMR, | 128 | 'HMR': METADATA.HMR, |
129 | 'API_URL': JSON.stringify(METADATA.API_URL), | ||
128 | 'process.env': { | 130 | 'process.env': { |
129 | 'ENV': JSON.stringify(METADATA.ENV), | 131 | 'ENV': JSON.stringify(METADATA.ENV), |
130 | 'NODE_ENV': JSON.stringify(METADATA.ENV), | 132 | 'NODE_ENV': JSON.stringify(METADATA.ENV), |