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

webpack.js « weather_status « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 30c833bca7c507b740af3fd7a1cd5d70ac2ff852 (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
const path = require('path')

module.exports = {
	entry: {
		'weather-status': path.join(__dirname, 'src', 'weather-status'),
	},
	output: {
		path: path.resolve(__dirname, './js'),
		publicPath: '/js/',
		filename: '[name].js?v=[chunkhash]',
		jsonpFunction: 'webpackJsonpWeatherStatus',
	},
	optimization: {
		splitChunks: {
			automaticNameDelimiter: '-',
		},
	},
	module: {
		rules: [
			{
				test: /\.(png|jpg|gif|svg|woff|woff2|eot|ttf)$/,
				loader: 'url-loader',
			},
		],
	},
}