fix: Workaround vue resolving with nextcloud-vue-collections
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
17
webpack.js
17
webpack.js
@@ -1,7 +1,5 @@
|
|||||||
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const ESLintPlugin = require('eslint-webpack-plugin')
|
|
||||||
const StyleLintPlugin = require('stylelint-webpack-plugin')
|
|
||||||
|
|
||||||
const buildMode = process.env.NODE_ENV
|
const buildMode = process.env.NODE_ENV
|
||||||
const isDev = buildMode === 'development'
|
const isDev = buildMode === 'development'
|
||||||
@@ -23,18 +21,7 @@ webpackConfig.stats = {
|
|||||||
modules: true,
|
modules: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
webpackConfig.plugins.push(
|
// Workaround for https://github.com/nextcloud/webpack-vue-config/pull/432 causing problems with nextcloud-vue-collections
|
||||||
new ESLintPlugin({
|
webpackConfig.resolve.alias = {}
|
||||||
extensions: ['js', 'vue'],
|
|
||||||
files: 'src',
|
|
||||||
failOnError: !isDev,
|
|
||||||
})
|
|
||||||
)
|
|
||||||
webpackConfig.plugins.push(
|
|
||||||
new StyleLintPlugin({
|
|
||||||
files: 'src/**/*.{css,scss,vue}',
|
|
||||||
failOnError: !isDev,
|
|
||||||
}),
|
|
||||||
)
|
|
||||||
|
|
||||||
module.exports = webpackConfig
|
module.exports = webpackConfig
|
||||||
|
|||||||
Reference in New Issue
Block a user