From 280cc57abc3d69fe2c9df2c8e2f21409bca1d166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 5 Apr 2023 20:31:04 +0200 Subject: [PATCH] fix: Workaround vue resolving with nextcloud-vue-collections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- webpack.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/webpack.js b/webpack.js index 76d7462a5..2a7ce762d 100644 --- a/webpack.js +++ b/webpack.js @@ -1,7 +1,5 @@ const webpackConfig = require('@nextcloud/webpack-vue-config') const path = require('path') -const ESLintPlugin = require('eslint-webpack-plugin') -const StyleLintPlugin = require('stylelint-webpack-plugin') const buildMode = process.env.NODE_ENV const isDev = buildMode === 'development' @@ -23,18 +21,7 @@ webpackConfig.stats = { modules: true, } -webpackConfig.plugins.push( - new ESLintPlugin({ - extensions: ['js', 'vue'], - files: 'src', - failOnError: !isDev, - }) -) -webpackConfig.plugins.push( - new StyleLintPlugin({ - files: 'src/**/*.{css,scss,vue}', - failOnError: !isDev, - }), -) +// Workaround for https://github.com/nextcloud/webpack-vue-config/pull/432 causing problems with nextcloud-vue-collections +webpackConfig.resolve.alias = {} module.exports = webpackConfig