From cddf94ceb78801c4cdac3cce0d7159f13659ac0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 20 Jul 2020 17:07:45 +0200 Subject: [PATCH] Replace merge.smart MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- webpack.common.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index d304828e578..b7aeb7193d6 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -50,16 +50,16 @@ module.exports = [] .concat( ...modulesToBuild() ) - .map(config => merge.smart({ + .map(config => merge({ module: { rules: [ { test: /\.css$/, - use: ['vue-style-loader', 'css-loader'] + use: ['vue-style-loader', 'css-loader'], }, { test: /\.scss$/, - use: ['vue-style-loader', 'css-loader', 'sass-loader'] + use: ['vue-style-loader', 'css-loader', 'sass-loader'], }, { test: /\.(js|vue)$/, @@ -72,38 +72,38 @@ module.exports = [] // don't want to parse all the js files so let's // use it from within webpack and only check // against our compiled files - fix: process.env.ESLINT_FIX === 'true' - } + fix: process.env.ESLINT_FIX === 'true', + }, }, { test: /\.vue$/, loader: 'vue-loader', - exclude: /node_modules/ + exclude: /node_modules/, }, { test: /\.js$/, loader: 'babel-loader', // automatically detect necessary packages to // transpile in the node_modules folder - exclude: /node_modules(?!(\/|\\)(nextcloud-vue-collections|p-finally|p-limit|p-locate|p-queue|p-timeout|p-try|toastify-js|v-tooltip)(\/|\\))/ + exclude: /node_modules(?!(\/|\\)(nextcloud-vue-collections|p-finally|p-limit|p-locate|p-queue|p-timeout|p-try|toastify-js|v-tooltip)(\/|\\))/, }, { test: /\.(png|jpg|gif)$/, loader: 'url-loader', options: { name: '[name].[ext]?[hash]', - limit: 8192 - } + limit: 8192, + }, }, { test: /\.handlebars/, loader: 'handlebars-loader', query: { - extensions: '.handlebars' - } - } + extensions: '.handlebars', + }, + }, - ] + ], }, plugins: [new VueLoaderPlugin()], resolve: { @@ -111,9 +111,9 @@ module.exports = [] OC: path.resolve(__dirname, './core/src/OC'), OCA: path.resolve(__dirname, './core/src/OCA'), // make sure to use the handlebar runtime when importing - handlebars: 'handlebars/runtime' + handlebars: 'handlebars/runtime', }, extensions: ['*', '.js', '.vue'], - symlinks: false - } + symlinks: false, + }, }, config)) -- 2.39.5