chore(webpack): Fix source maps on hot reloading

This commit is contained in:
Vlad Piersec 2021-10-22 13:29:43 +03:00 committed by vp8x8
parent 69d2cb52fe
commit 9ab16a0a5c
2 changed files with 13 additions and 11 deletions

View File

@ -37,24 +37,24 @@ deploy-init:
deploy-appbundle:
cp \
$(BUILD_DIR)/app.bundle.min.js \
$(BUILD_DIR)/app.bundle.min.map \
$(BUILD_DIR)/app.bundle.min.js.map \
$(BUILD_DIR)/do_external_connect.min.js \
$(BUILD_DIR)/do_external_connect.min.map \
$(BUILD_DIR)/do_external_connect.min.js.map \
$(BUILD_DIR)/external_api.min.js \
$(BUILD_DIR)/external_api.min.map \
$(BUILD_DIR)/external_api.min.js.map \
$(BUILD_DIR)/flacEncodeWorker.min.js \
$(BUILD_DIR)/flacEncodeWorker.min.map \
$(BUILD_DIR)/flacEncodeWorker.min.js.map \
$(BUILD_DIR)/dial_in_info_bundle.min.js \
$(BUILD_DIR)/dial_in_info_bundle.min.map \
$(BUILD_DIR)/dial_in_info_bundle.min.js.map \
$(BUILD_DIR)/alwaysontop.min.js \
$(BUILD_DIR)/alwaysontop.min.map \
$(BUILD_DIR)/alwaysontop.min.js.map \
$(OUTPUT_DIR)/analytics-ga.js \
$(BUILD_DIR)/analytics-ga.min.js \
$(BUILD_DIR)/analytics-ga.min.map \
$(BUILD_DIR)/analytics-ga.min.js.map \
$(DEPLOY_DIR)
cp \
$(BUILD_DIR)/close3.min.js \
$(BUILD_DIR)/close3.min.map \
$(BUILD_DIR)/close3.min.js.map \
$(DEPLOY_DIR) || true
deploy-lib-jitsi-meet:

View File

@ -203,7 +203,7 @@ function getConfig(options = {}) {
filename: `[name]${minimize ? '.min' : ''}.js`,
path: `${__dirname}/build`,
publicPath: '/libs/',
sourceMapFilename: `[name].${minimize ? 'min' : 'js'}.map`
sourceMapFilename: '[file].map'
},
plugins: [
detectCircularDeps
@ -243,6 +243,7 @@ function getConfig(options = {}) {
* Webpack 5 because only one devServer entry is supported, so we attach it to
* the main bundle.
*
* @returns {Object} the dev server configuration.
*/
function getDevServerConfig() {
@ -255,6 +256,7 @@ function getDevServerConfig() {
},
https: true,
host: '127.0.0.1',
hot: true,
proxy: {
'/': {
bypass: devServerProxyBypass,