From 64879cd302fa7036b64491f81857554067ce082d Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Fri, 10 Feb 2023 11:19:00 +0100 Subject: [PATCH] webpack: include sounds in webserver, and increase asset size so it does not warn for emojione and main.js --- webpack.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index d94ee49..c9fb4cf 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,6 +10,10 @@ module.exports = { context: path.resolve(__dirname, 'src'), entry: './main.js', mode: 'production', + performance: { + maxEntrypointSize: 600000, + maxAssetSize: 600000 + }, output: { path: path.resolve(__dirname, 'build'), }, @@ -27,6 +31,8 @@ module.exports = { new CopyWebpackPlugin({ patterns: [ "**/*.css", + "**/*.mp3", + "**/*.ogg", "**/*.svg", "**/*.png", "directives/*.html",