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

webpack.config.js - github.com/nextcloud/external.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bd08ae20bd39ca4629e2fa36653c29ed6a1b9877 (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')

module.exports = {
	entry: {
		admin: path.join(__dirname, 'src', 'admin.js'),
	},
	output: {
		path: path.join(__dirname, 'js', 'dist'),
	},
	devtool: 'source-map',
	mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
	module: {
		rules: [
			{
				test: /\.js$/,
				loader: 'babel-loader',
				exclude: /node_modules/,
			},
		],
	},
	resolve: {
		extensions: ['.js', '.vue'],
	},
}