summaryrefslogtreecommitdiffstats
path: root/apps/weather_status/webpack.js
blob: 500f1d4616c940062a83bdb2030759bb83c31be3 (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',
            },
        ],
	},
}