webpack: include sounds in webserver, and increase asset size so it

does not warn for emojione and main.js
This commit is contained in:
Tor Hveem 2023-02-10 11:19:00 +01:00
parent 6a1d5cd276
commit 64879cd302
1 changed files with 6 additions and 0 deletions

View File

@ -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",