summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
blob: b1b34c3b55f4c082195e97d5ef174fdc1c4edf2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const path = require('path')
const webpack = require('webpack')
const webpackConfig = require('@nextcloud/webpack-vue-config')

webpackConfig.entry['files-action'] = path.join(__dirname, 'src', 'files-action.js')
webpackConfig.entry['admin-settings'] = path.join(__dirname, 'src', 'admin-settings.js')
webpackConfig.plugins.push(...[
	new webpack.IgnorePlugin({
		resourceRegExp: /^\.\/locale$/,
		contextRegExp: /moment$/,
	}),
])

webpackConfig.module.rules.push({
	  test: /\.tsx?$/,
	  use: 'ts-loader',
	  exclude: /node_modules/,
})

webpackConfig.resolve.extensions = ['.js', '.vue', '.ts', '.tsx']

webpackConfig.resolve.fallback = {"fs": false}

module.exports = webpackConfig