Copy sounds dir to dist and use assets_path
for sounds_path
This commit is contained in:
parent
a81e019427
commit
bcbde04530
|
@ -165,7 +165,7 @@
|
||||||
"no-param-reassign": "off",
|
"no-param-reassign": "off",
|
||||||
"no-path-concat": "error",
|
"no-path-concat": "error",
|
||||||
"no-plusplus": "off",
|
"no-plusplus": "off",
|
||||||
"no-process-env": "error",
|
"no-process-env": "off",
|
||||||
"no-process-exit": "error",
|
"no-process-exit": "error",
|
||||||
"no-proto": "error",
|
"no-proto": "error",
|
||||||
"no-prototype-builtins": "error",
|
"no-prototype-builtins": "error",
|
||||||
|
|
|
@ -1653,7 +1653,7 @@ server for acknowledgement of those stanzas.
|
||||||
sounds_path
|
sounds_path
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
* Default: ``sounds/``
|
* Default: ``${assets_path}/sounds/``
|
||||||
|
|
||||||
This option only makes sense in conjunction with the `play_sounds`_ option and
|
This option only makes sense in conjunction with the `play_sounds`_ option and
|
||||||
specifies the URL of the sound files to be played (exluding the file names
|
specifies the URL of the sound files to be played (exluding the file names
|
||||||
|
|
14
package-lock.json
generated
14
package-lock.json
generated
|
@ -14188,7 +14188,7 @@
|
||||||
},
|
},
|
||||||
"camelcase-keys": {
|
"camelcase-keys": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
|
"resolved": "http://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
|
||||||
"integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=",
|
"integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
@ -14198,7 +14198,7 @@
|
||||||
},
|
},
|
||||||
"chalk": {
|
"chalk": {
|
||||||
"version": "1.1.3",
|
"version": "1.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
|
"resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
|
||||||
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
|
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
@ -14240,7 +14240,7 @@
|
||||||
},
|
},
|
||||||
"load-json-file": {
|
"load-json-file": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
|
"resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
|
||||||
"integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
|
"integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
@ -14259,7 +14259,7 @@
|
||||||
},
|
},
|
||||||
"meow": {
|
"meow": {
|
||||||
"version": "3.7.0",
|
"version": "3.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
|
"resolved": "http://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
|
||||||
"integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
|
"integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
@ -19126,7 +19126,7 @@
|
||||||
},
|
},
|
||||||
"pinkie-promise": {
|
"pinkie-promise": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
|
"resolved": "http://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
|
||||||
"integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
|
"integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
@ -20617,7 +20617,7 @@
|
||||||
},
|
},
|
||||||
"load-json-file": {
|
"load-json-file": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
|
"resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
|
||||||
"integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
|
"integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
@ -20630,7 +20630,7 @@
|
||||||
},
|
},
|
||||||
"os-locale": {
|
"os-locale": {
|
||||||
"version": "1.4.0",
|
"version": "1.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz",
|
"resolved": "http://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz",
|
||||||
"integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=",
|
"integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
|
|
@ -31,7 +31,7 @@ converse.plugins.add('converse-notification', {
|
||||||
chatstate_notification_blacklist: [],
|
chatstate_notification_blacklist: [],
|
||||||
// ^ a list of JIDs to ignore concerning chat state notifications
|
// ^ a list of JIDs to ignore concerning chat state notifications
|
||||||
play_sounds: true,
|
play_sounds: true,
|
||||||
sounds_path: 'sounds/',
|
sounds_path: _converse.assets_path+'/sounds/',
|
||||||
notification_icon: 'logo/conversejs-filled.svg',
|
notification_icon: 'logo/conversejs-filled.svg',
|
||||||
notification_delay: 5000
|
notification_delay: 5000
|
||||||
});
|
});
|
||||||
|
|
|
@ -201,6 +201,7 @@ _converse.default_connection_options = {'explicitResourceBinding': true};
|
||||||
// ----------------------------
|
// ----------------------------
|
||||||
_converse.default_settings = {
|
_converse.default_settings = {
|
||||||
allow_non_roster_messaging: false,
|
allow_non_roster_messaging: false,
|
||||||
|
assets_path: '/dist',
|
||||||
authentication: 'login', // Available values are "login", "prebind", "anonymous" and "external".
|
authentication: 'login', // Available values are "login", "prebind", "anonymous" and "external".
|
||||||
auto_away: 0, // Seconds after which user status is set to 'away'
|
auto_away: 0, // Seconds after which user status is set to 'away'
|
||||||
auto_login: false, // Currently only used in connection with anonymous login
|
auto_login: false, // Currently only used in connection with anonymous login
|
||||||
|
@ -210,7 +211,6 @@ _converse.default_settings = {
|
||||||
connection_options: {},
|
connection_options: {},
|
||||||
credentials_url: null, // URL from where login credentials can be fetched
|
credentials_url: null, // URL from where login credentials can be fetched
|
||||||
csi_waiting_time: 0, // Support for XEP-0352. Seconds before client is considered idle and CSI is sent out.
|
csi_waiting_time: 0, // Support for XEP-0352. Seconds before client is considered idle and CSI is sent out.
|
||||||
loglevel: 'info',
|
|
||||||
default_state: 'online',
|
default_state: 'online',
|
||||||
discover_connection_methods: false,
|
discover_connection_methods: false,
|
||||||
geouri_regex: /https\:\/\/www.openstreetmap.org\/.*#map=[0-9]+\/([\-0-9.]+)\/([\-0-9.]+)\S*/g,
|
geouri_regex: /https\:\/\/www.openstreetmap.org\/.*#map=[0-9]+\/([\-0-9.]+)\/([\-0-9.]+)\S*/g,
|
||||||
|
@ -218,6 +218,7 @@ _converse.default_settings = {
|
||||||
idle_presence_timeout: 300, // Seconds after which an idle presence is sent
|
idle_presence_timeout: 300, // Seconds after which an idle presence is sent
|
||||||
jid: undefined,
|
jid: undefined,
|
||||||
keepalive: true,
|
keepalive: true,
|
||||||
|
loglevel: 'info',
|
||||||
locales: [
|
locales: [
|
||||||
'af', 'ar', 'bg', 'ca', 'cs', 'de', 'eo', 'es', 'eu', 'en', 'fr', 'gl',
|
'af', 'ar', 'bg', 'ca', 'cs', 'de', 'eo', 'es', 'eu', 'en', 'fr', 'gl',
|
||||||
'he', 'hi', 'hu', 'id', 'it', 'ja', 'nb', 'nl', 'mr', 'oc',
|
'he', 'hi', 'hu', 'id', 'it', 'ja', 'nb', 'nl', 'mr', 'oc',
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/* global __dirname, module */
|
/* global __dirname, module, process */
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
let bootstrap_ignore_modules = ['carousel', 'scrollspy'];
|
||||||
|
|
||||||
bootstrap_ignore_modules = ['carousel', 'scrollspy'];
|
const BOOTSTRAP_IGNORE_MODULES = (process.env.BOOTSTRAP_IGNORE_MODULES || '').replace(/ /g, '').trim();
|
||||||
|
if (BOOTSTRAP_IGNORE_MODULES.length > 0) {
|
||||||
BOOTSTRAP_IGNORE_MODULES = (process.env.BOOTSTRAP_IGNORE_MODULES || '').replace(/ /g, '').trim();
|
|
||||||
if(BOOTSTRAP_IGNORE_MODULES.length > 0)
|
|
||||||
bootstrap_ignore_modules = bootstrap_ignore_modules.concat(BOOTSTRAP_IGNORE_MODULES.split(','));
|
bootstrap_ignore_modules = bootstrap_ignore_modules.concat(BOOTSTRAP_IGNORE_MODULES.split(','));
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
output: {
|
output: {
|
||||||
|
|
|
@ -19,6 +19,7 @@ module.exports = merge(common, {
|
||||||
}),
|
}),
|
||||||
new MiniCssExtractPlugin({filename: '../dist/converse.min.css'}),
|
new MiniCssExtractPlugin({filename: '../dist/converse.min.css'}),
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin([
|
||||||
|
{from: 'sounds'},
|
||||||
{from: 'images/favicon.ico'},
|
{from: 'images/favicon.ico'},
|
||||||
{from: 'images/custom_emojis', to: 'custom_emojis'},
|
{from: 'images/custom_emojis', to: 'custom_emojis'},
|
||||||
{from: 'sass/webfonts', to: 'webfonts'}
|
{from: 'sass/webfonts', to: 'webfonts'}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user