diff options
Diffstat (limited to 'apps/weather_status/webpack.js')
-rw-r--r-- | apps/weather_status/webpack.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/apps/weather_status/webpack.js b/apps/weather_status/webpack.js new file mode 100644 index 00000000000..500f1d4616c --- /dev/null +++ b/apps/weather_status/webpack.js @@ -0,0 +1,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', + }, + ], + }, +} |