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

webpack.config.js - github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 59b1e0649a8fd7cfe83b4eade0e2c77f7f976d45 (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
25
26
27
28
const path = require('path')
const webpackConfig = require('@nextcloud/webpack-vue-config')
const webpackRules = require('@nextcloud/webpack-vue-config/rules')

webpackConfig.entry = {
	main: path.join(__dirname, 'src/js/', 'main.js'),
	collections: path.join(__dirname, 'src/js/', 'collections.js'),
	userSettings: path.join(__dirname, 'src/js/', 'userSettings.js'),
	adminSettings: path.join(__dirname, 'src/js/', 'adminSettings.js'),
}

webpackConfig.output = {
	...webpackConfig.output,
	clean: true,
}

webpackRules.RULE_VUE = {
	...webpackRules.RULE_VUE,
	options: {
		compilerOptions: {
			whitespace: 'condense',
		},
	},
}

webpackConfig.module.rules = Object.values(webpackRules)

module.exports = webpackConfig