summaryrefslogtreecommitdiffstats
path: root/core/webpack.dev.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-01-15 21:18:32 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-01-16 10:03:21 +0100
commitc77d7d6e794247f0fc7991d1d3517bd6c6fbe7a4 (patch)
tree4a44d689f994eddc0473696e141c04c0d02ac74b /core/webpack.dev.js
parentb58f3e75839669d5b0bf3c3b2f8ee950d8accab1 (diff)
downloadnextcloud-server-c77d7d6e794247f0fc7991d1d3517bd6c6fbe7a4.tar.gz
nextcloud-server-c77d7d6e794247f0fc7991d1d3517bd6c6fbe7a4.zip
Move merged-share-backend to webpack
For #13608 Since we have webpack anyway it make sense to let webpack do the bundling instead of ourselfs. This leads to minified code (so less transfer). And the webserver can just handle the request. As a bonus we get a map file so debugging is easier than with our JSCombiner stuff. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/webpack.dev.js')
-rw-r--r--core/webpack.dev.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/webpack.dev.js b/core/webpack.dev.js
index 55cfa220285..8de803b5683 100644
--- a/core/webpack.dev.js
+++ b/core/webpack.dev.js
@@ -1,7 +1,9 @@
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
-module.exports = merge(common, {
- mode: 'development',
- devtool: 'cheap-source-map',
-})
+module.exports = common.map(
+ config => merge(config, {
+ mode: 'development',
+ devtool: 'cheap-source-map',
+ })
+)