]> source.dussan.org Git - nextcloud-server.git/commitdiff
Replace merge.smart 21903/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Mon, 20 Jul 2020 15:07:45 +0000 (17:07 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 30 Jul 2020 14:38:52 +0000 (16:38 +0200)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
webpack.common.js

index d304828e5783d08a7c7a8632f615a2ed276b9014..b7aeb7193d659fd7a16506df53450133bd0e1853 100644 (file)
@@ -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))