Merge pull request #1239 from torhve/webpack

webpack: include sounds in webserver, and increase asset size so it
This commit is contained in:
Tor Hveem 2023-02-16 19:09:55 +01:00 committed by GitHub
commit 2efefbb782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",