mirror of
https://github.com/nextcloud/recognize.git
synced 2025-07-23 02:57:37 +00:00
17 lines
490 B
JavaScript
17 lines
490 B
JavaScript
const { merge } = require('webpack-merge')
|
|
const path = require('path')
|
|
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
|
|
|
const config = {
|
|
entry: {
|
|
admin: path.join(__dirname, 'src', 'admin.js'),
|
|
}
|
|
}
|
|
|
|
const mergedConfigs = merge(config, webpackConfig)
|
|
|
|
// Remove duplicate rules by the `test` key
|
|
mergedConfigs.module.rules = mergedConfigs.module.rules.filter((v, i, a) => a.findIndex(t => (t.test.toString() === v.test.toString())) === i)
|
|
|
|
module.exports = mergedConfigs
|