Bugfix. Chunks not loading when using converse.js build

(Although they do load when using converse.min.js)

I wasn't able to figure out why exactly, but setting `mode` to
`production` for the `converse.js` build solved the issue.
This commit is contained in:
JC Brand 2022-05-04 21:51:00 +02:00
parent ad8c250314
commit f929f8b7f9
4 changed files with 6 additions and 4 deletions

View File

@ -575,7 +575,7 @@ const ChatRoomMixin = {
try {
attrs = await parseMUCMessage(stanza, this, _converse);
} catch (e) {
return log.error(e.message);
return log.error(e);
}
const data = { stanza, attrs, 'chatbox': this };
/**

View File

@ -4,7 +4,7 @@ const prod = require("./webpack.prod.js");
const { merge } = require("webpack-merge");
module.exports = merge(prod, {
mode: "development",
mode: "production",
output: {
filename: 'converse.js',
},

View File

@ -65,7 +65,6 @@ module.exports = merge(common, {
'lodash.noconflict': 'lodash.noconflict',
'sizzle': 'sizzle',
'strophe.js': 'strophe',
'twemoji': 'twemoji',
'urijs': 'urijs',
'window': 'window',
}]

View File

@ -54,7 +54,10 @@ module.exports = merge(common, {
loader: 'sass-loader',
options: {
sassOptions: {
includePaths: [path.resolve(__dirname, '../node_modules/')]
includePaths: [
path.resolve(__dirname, '../node_modules/'),
path.resolve(__dirname, '../src/')
]
},
sourceMap: true
}