Welcome to mirror list, hosted at ThFree Co, Russian Federation.

webpack.config.js - github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 48b07ddc52915033a56701cbe1989690b42b1b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const webpackConfig = require('@nextcloud/webpack-vue-config')
const path = require('path')
const webpack = require('webpack')

webpackConfig.entry = {
	...webpackConfig.entry,
	dashboard: path.join(__dirname, 'src', 'dashboard.js'),
	talk: path.join(__dirname, 'src', 'talk.js'),
}

webpackConfig.plugins.push(
	new webpack.ProvidePlugin({
		// Shim ICAL to prevent using the global object (window.ICAL).
		// The library ical.js heavily depends on instanceof checks which will
		// break if two separate versions of the library are used (e.g. bundled one
		// and global one).
		ICAL: 'ical.js',
	}),
)

module.exports = webpackConfig