summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
blob: 91ee5634841303af58a472b8a27971433521ab3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const path = require('path')
const webpackConfig = require('@nextcloud/webpack-vue-config')
const webpackRules = require('@nextcloud/webpack-vue-config/rules')

webpackConfig.entry['files-action'] = path.join(__dirname, 'src', 'files-action.js')
webpackConfig.entry['admin-settings'] = path.join(__dirname, 'src', 'admin-settings.js')

// Include mdi icons as raw svg strings
webpackRules.RULE_SVG = {
	resourceQuery: /raw/,
	type: 'asset/source',
}
webpackConfig.module.rules = Object.values(webpackRules)

webpackConfig.resolve.fallback = { fs: false }

module.exports = webpackConfig