aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-07-22 13:06:17 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-07-22 13:06:17 +0200
commit49b490ce6d1d726aa1c335b0b5c440d8a3cae5ff (patch)
treee3013292c32c7d7d12997a9e2c140b15f03a23ee /webpack.common.js
parentf14b8aa34bfb9f7af7b23cfecc09e2fb8f604c1b (diff)
downloadnextcloud-server-49b490ce6d1d726aa1c335b0b5c440d8a3cae5ff.tar.gz
nextcloud-server-49b490ce6d1d726aa1c335b0b5c440d8a3cae5ff.zip
Migrate to npm 7
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js13
1 files changed, 4 insertions, 9 deletions
diff --git a/webpack.common.js b/webpack.common.js
index 5c067b3e8bf..b140eef8960 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -1,9 +1,11 @@
/* eslint-disable camelcase */
const { merge } = require('webpack-merge')
const { VueLoaderPlugin } = require('vue-loader')
-const BabelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except')
const path = require('path')
+const BabelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except')
+const ESLintPlugin = require('eslint-webpack-plugin')
+
const accessibility = require('./apps/accessibility/webpack')
const comments = require('./apps/comments/webpack')
const core = require('./core/webpack')
@@ -69,13 +71,6 @@ module.exports = []
use: ['style-loader', 'css-loader', 'sass-loader'],
},
{
- test: /\.(js|vue)$/,
- loader: 'eslint-loader',
- // no checks against vendors, modules or handlebar compiled files
- exclude: /node_modules|vendor|templates\.js/,
- enforce: 'pre',
- },
- {
test: /\.vue$/,
loader: 'vue-loader',
exclude: BabelLoaderExcludeNodeModulesExcept([
@@ -123,7 +118,7 @@ module.exports = []
],
},
- plugins: [new VueLoaderPlugin()],
+ plugins: [new VueLoaderPlugin(), new ESLintPlugin()],
resolve: {
alias: {
OC: path.resolve(__dirname, './core/src/OC'),