2020-08-06 11:43:26 +03:00
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: {
|
2021-03-17 10:25:31 +03:00
|
|
|
'weather-status': path.join(__dirname, 'src', 'weather-status'),
|
2020-08-06 11:43:26 +03:00
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, './js'),
|
|
|
|
publicPath: '/js/',
|
|
|
|
filename: '[name].js?v=[chunkhash]',
|
2021-03-17 10:25:31 +03:00
|
|
|
jsonpFunction: 'webpackJsonpWeatherStatus',
|
2020-08-06 11:43:26 +03:00
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
splitChunks: {
|
|
|
|
automaticNameDelimiter: '-',
|
2021-03-17 10:25:31 +03:00
|
|
|
},
|
2020-08-06 11:43:26 +03:00
|
|
|
},
|
|
|
|
module: {
|
2021-03-17 10:25:31 +03:00
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.(png|jpg|gif|svg|woff|woff2|eot|ttf)$/,
|
|
|
|
loader: 'url-loader',
|
|
|
|
},
|
|
|
|
],
|
2020-08-06 11:43:26 +03:00
|
|
|
},
|
|
|
|
}
|