mirror of
https://github.com/nextcloud/server.git
synced 2024-08-28 17:55:03 +02:00
27 lines
542 B
JavaScript
27 lines
542 B
JavaScript
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',
|
|
},
|
|
],
|
|
},
|
|
}
|