repod/webpack.js
Michel Roux de1b7184d2
All checks were successful
repod / xml (push) Successful in 19s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 1m22s
repod / release (push) Has been skipped
refactor: ♻️ update project from app-template
2024-05-29 17:11:53 +02:00

28 lines
619 B
JavaScript

const webpackConfig = require('@nextcloud/webpack-vue-config')
const ESLintPlugin = require('eslint-webpack-plugin')
const StyleLintPlugin = require('stylelint-webpack-plugin')
const path = require('path')
webpackConfig.entry = {
main: { import: path.join(__dirname, 'src', 'main.js'), filename: 'main.js' },
}
webpackConfig.plugins.push(
new ESLintPlugin({
extensions: ['js', 'vue'],
files: 'src',
}),
)
webpackConfig.plugins.push(
new StyleLintPlugin({
files: 'src/**/*.{css,scss,vue}',
}),
)
webpackConfig.module.rules.push({
test: /\.svg$/i,
type: 'asset/source',
})
module.exports = webpackConfig