webpack: include sounds in webserver, and increase asset size so it
does not warn for emojione and main.js
This commit is contained in:
parent
6a1d5cd276
commit
64879cd302
|
@ -10,6 +10,10 @@ module.exports = {
|
||||||
context: path.resolve(__dirname, 'src'),
|
context: path.resolve(__dirname, 'src'),
|
||||||
entry: './main.js',
|
entry: './main.js',
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
|
performance: {
|
||||||
|
maxEntrypointSize: 600000,
|
||||||
|
maxAssetSize: 600000
|
||||||
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'build'),
|
path: path.resolve(__dirname, 'build'),
|
||||||
},
|
},
|
||||||
|
@ -27,6 +31,8 @@ module.exports = {
|
||||||
new CopyWebpackPlugin({
|
new CopyWebpackPlugin({
|
||||||
patterns: [
|
patterns: [
|
||||||
"**/*.css",
|
"**/*.css",
|
||||||
|
"**/*.mp3",
|
||||||
|
"**/*.ogg",
|
||||||
"**/*.svg",
|
"**/*.svg",
|
||||||
"**/*.png",
|
"**/*.png",
|
||||||
"directives/*.html",
|
"directives/*.html",
|
||||||
|
|
Loading…
Reference in New Issue