aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.prod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-11 12:28:22 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-11 12:28:22 +0200
commit8635a2c70cc24a4c52558162ac058de95750271f (patch)
treea9699b7c6696218604e6b273b4f34a6898d4f16b /client/config/webpack.prod.js
parent66dd264f7b15c05006faa00694c88c56794edc54 (diff)
downloadPeerTube-8635a2c70cc24a4c52558162ac058de95750271f.tar.gz
PeerTube-8635a2c70cc24a4c52558162ac058de95750271f.tar.zst
PeerTube-8635a2c70cc24a4c52558162ac058de95750271f.zip
Update client modules
Diffstat (limited to 'client/config/webpack.prod.js')
-rw-r--r--client/config/webpack.prod.js45
1 files changed, 5 insertions, 40 deletions
diff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.js
index 6d65fcb37..9bb7306af 100644
--- a/client/config/webpack.prod.js
+++ b/client/config/webpack.prod.js
@@ -14,7 +14,7 @@ const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin')
14const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin') 14const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin')
15const OptimizeJsPlugin = require('optimize-js-plugin') 15const OptimizeJsPlugin = require('optimize-js-plugin')
16const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin') 16const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin')
17const WebpackMd5Hash = require('webpack-md5-hash') 17const HashedModuleIdsPlugin = require('webpack/lib/HashedModuleIdsPlugin')
18 18
19/** 19/**
20 * Webpack Constants 20 * Webpack Constants
@@ -67,7 +67,7 @@ module.exports = function (env) {
67 * 67 *
68 * See: http://webpack.github.io/docs/configuration.html#output-sourcemapfilename 68 * See: http://webpack.github.io/docs/configuration.html#output-sourcemapfilename
69 */ 69 */
70 sourceMapFilename: '[name].[chunkhash].bundle.map', 70 sourceMapFilename: '[file].map',
71 71
72 /** 72 /**
73 * The filename of non-entry chunks as relative path 73 * The filename of non-entry chunks as relative path
@@ -75,7 +75,7 @@ module.exports = function (env) {
75 * 75 *
76 * See: http://webpack.github.io/docs/configuration.html#output-chunkfilename 76 * See: http://webpack.github.io/docs/configuration.html#output-chunkfilename
77 */ 77 */
78 chunkFilename: '[id].[chunkhash].chunk.js', 78 chunkFilename: '[name].[chunkhash].chunk.js',
79 79
80 publicPath: '/client/' 80 publicPath: '/client/'
81 }, 81 },
@@ -92,14 +92,6 @@ module.exports = function (env) {
92 plugins: [ 92 plugins: [
93 93
94 /** 94 /**
95 * Plugin: WebpackMd5Hash
96 * Description: Plugin to replace a standard webpack chunkhash with md5.
97 *
98 * See: https://www.npmjs.com/package/webpack-md5-hash
99 */
100 new WebpackMd5Hash(),
101
102 /**
103 * Webpack plugin to optimize a JavaScript file for faster initial load 95 * Webpack plugin to optimize a JavaScript file for faster initial load
104 * by wrapping eagerly-invoked functions. 96 * by wrapping eagerly-invoked functions.
105 * 97 *
@@ -194,35 +186,7 @@ module.exports = function (env) {
194 helpers.root('config/empty.js') 186 helpers.root('config/empty.js')
195 ), 187 ),
196 188
197 // AoT 189 new HashedModuleIdsPlugin(),
198 // new NormalModuleReplacementPlugin(
199 // /@angular(\\|\/)upgrade/,
200 // helpers.root('config/empty.js')
201 // ),
202 // new NormalModuleReplacementPlugin(
203 // /@angular(\\|\/)compiler/,
204 // helpers.root('config/empty.js')
205 // ),
206 // new NormalModuleReplacementPlugin(
207 // /@angular(\\|\/)platform-browser-dynamic/,
208 // helpers.root('config/empty.js')
209 // ),
210 // new NormalModuleReplacementPlugin(
211 // /dom(\\|\/)debug(\\|\/)ng_probe/,
212 // helpers.root('config/empty.js')
213 // ),
214 // new NormalModuleReplacementPlugin(
215 // /dom(\\|\/)debug(\\|\/)by/,
216 // helpers.root('config/empty.js')
217 // ),
218 // new NormalModuleReplacementPlugin(
219 // /src(\\|\/)debug(\\|\/)debug_node/,
220 // helpers.root('config/empty.js')
221 // ),
222 // new NormalModuleReplacementPlugin(
223 // /src(\\|\/)debug(\\|\/)debug_renderer/,
224 // helpers.root('config/empty.js')
225 // ),
226 190
227 /** 191 /**
228 * Plugin: IgnorePlugin 192 * Plugin: IgnorePlugin
@@ -252,6 +216,7 @@ module.exports = function (env) {
252 * See: https://gist.github.com/sokra/27b24881210b56bbaff7 216 * See: https://gist.github.com/sokra/27b24881210b56bbaff7
253 */ 217 */
254 new LoaderOptionsPlugin({ 218 new LoaderOptionsPlugin({
219 minimize: true,
255 debug: false, 220 debug: false,
256 options: { 221 options: {
257 222