aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-25 11:33:16 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-25 11:33:16 +0200
commitf627b712c95cb7a867499534424f63d409f21ef7 (patch)
treeae966005a3e844b37b03cb136503cf73fbd175c8 /client/config
parent26b8286522f6be8ce097ad3f512ab4ad13d1191d (diff)
downloadPeerTube-f627b712c95cb7a867499534424f63d409f21ef7.tar.gz
PeerTube-f627b712c95cb7a867499534424f63d409f21ef7.tar.zst
PeerTube-f627b712c95cb7a867499534424f63d409f21ef7.zip
Fix client build
A node dep is in ES2015, but uglify is not compatible. Temporary quick fix -> use babel on this module (awaiting an official support of uglify and webpack for ES2015)
Diffstat (limited to 'client/config')
-rw-r--r--client/config/webpack.prod.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.js
index 1484e2ac2..4f33961f5 100644
--- a/client/config/webpack.prod.js
+++ b/client/config/webpack.prod.js
@@ -81,6 +81,21 @@ module.exports = function (env) {
81 publicPath: '/client/' 81 publicPath: '/client/'
82 }, 82 },
83 83
84 module: {
85 rules: [
86 {
87 test: /junk\/index\.js$/,
88 // exclude: /(node_modules|bower_components)/,
89 use: {
90 loader: 'babel-loader',
91 options: {
92 presets: [ 'env' ]
93 }
94 }
95 }
96 ]
97 },
98
84 /** 99 /**
85 * Add additional plugins to the compiler. 100 * Add additional plugins to the compiler.
86 * 101 *
@@ -130,6 +145,7 @@ module.exports = function (env) {
130 'HMR': METADATA.HMR 145 'HMR': METADATA.HMR
131 } 146 }
132 }), 147 }),
148
133 /** 149 /**
134 * Plugin: UglifyJsPlugin 150 * Plugin: UglifyJsPlugin
135 * Description: Minimize all JavaScript output of chunks. 151 * Description: Minimize all JavaScript output of chunks.