aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.prod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-11 15:19:43 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-11 15:19:43 +0200
commit1840c2f7c91f5f89602a3683d85b0a9df1454855 (patch)
tree7efc223222e2d318abfaef0839a79e23be727cea /client/config/webpack.prod.js
parent8635a2c70cc24a4c52558162ac058de95750271f (diff)
downloadPeerTube-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.js4
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
32module.exports = function (env) { 33module.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),