chore(webpack): Fix source maps on hot reloading
This commit is contained in:
parent
69d2cb52fe
commit
9ab16a0a5c
20
Makefile
20
Makefile
|
@ -37,24 +37,24 @@ deploy-init:
|
||||||
deploy-appbundle:
|
deploy-appbundle:
|
||||||
cp \
|
cp \
|
||||||
$(BUILD_DIR)/app.bundle.min.js \
|
$(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.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.js \
|
||||||
$(BUILD_DIR)/external_api.min.map \
|
$(BUILD_DIR)/external_api.min.js.map \
|
||||||
$(BUILD_DIR)/flacEncodeWorker.min.js \
|
$(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.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.js \
|
||||||
$(BUILD_DIR)/alwaysontop.min.map \
|
$(BUILD_DIR)/alwaysontop.min.js.map \
|
||||||
$(OUTPUT_DIR)/analytics-ga.js \
|
$(OUTPUT_DIR)/analytics-ga.js \
|
||||||
$(BUILD_DIR)/analytics-ga.min.js \
|
$(BUILD_DIR)/analytics-ga.min.js \
|
||||||
$(BUILD_DIR)/analytics-ga.min.map \
|
$(BUILD_DIR)/analytics-ga.min.js.map \
|
||||||
$(DEPLOY_DIR)
|
$(DEPLOY_DIR)
|
||||||
cp \
|
cp \
|
||||||
$(BUILD_DIR)/close3.min.js \
|
$(BUILD_DIR)/close3.min.js \
|
||||||
$(BUILD_DIR)/close3.min.map \
|
$(BUILD_DIR)/close3.min.js.map \
|
||||||
$(DEPLOY_DIR) || true
|
$(DEPLOY_DIR) || true
|
||||||
|
|
||||||
deploy-lib-jitsi-meet:
|
deploy-lib-jitsi-meet:
|
||||||
|
@ -85,12 +85,12 @@ deploy-rnnoise-binary:
|
||||||
deploy-tflite:
|
deploy-tflite:
|
||||||
cp \
|
cp \
|
||||||
$(TFLITE_WASM)/*.wasm \
|
$(TFLITE_WASM)/*.wasm \
|
||||||
$(DEPLOY_DIR)
|
$(DEPLOY_DIR)
|
||||||
|
|
||||||
deploy-meet-models:
|
deploy-meet-models:
|
||||||
cp \
|
cp \
|
||||||
$(MEET_MODELS_DIR)/*.tflite \
|
$(MEET_MODELS_DIR)/*.tflite \
|
||||||
$(DEPLOY_DIR)
|
$(DEPLOY_DIR)
|
||||||
|
|
||||||
deploy-css:
|
deploy-css:
|
||||||
$(NODE_SASS) $(STYLES_MAIN) $(STYLES_BUNDLE) && \
|
$(NODE_SASS) $(STYLES_MAIN) $(STYLES_BUNDLE) && \
|
||||||
|
|
|
@ -203,7 +203,7 @@ function getConfig(options = {}) {
|
||||||
filename: `[name]${minimize ? '.min' : ''}.js`,
|
filename: `[name]${minimize ? '.min' : ''}.js`,
|
||||||
path: `${__dirname}/build`,
|
path: `${__dirname}/build`,
|
||||||
publicPath: '/libs/',
|
publicPath: '/libs/',
|
||||||
sourceMapFilename: `[name].${minimize ? 'min' : 'js'}.map`
|
sourceMapFilename: '[file].map'
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
detectCircularDeps
|
detectCircularDeps
|
||||||
|
@ -243,6 +243,7 @@ function getConfig(options = {}) {
|
||||||
* Webpack 5 because only one devServer entry is supported, so we attach it to
|
* Webpack 5 because only one devServer entry is supported, so we attach it to
|
||||||
* the main bundle.
|
* the main bundle.
|
||||||
*
|
*
|
||||||
|
|
||||||
* @returns {Object} the dev server configuration.
|
* @returns {Object} the dev server configuration.
|
||||||
*/
|
*/
|
||||||
function getDevServerConfig() {
|
function getDevServerConfig() {
|
||||||
|
@ -255,6 +256,7 @@ function getDevServerConfig() {
|
||||||
},
|
},
|
||||||
https: true,
|
https: true,
|
||||||
host: '127.0.0.1',
|
host: '127.0.0.1',
|
||||||
|
hot: true,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/': {
|
'/': {
|
||||||
bypass: devServerProxyBypass,
|
bypass: devServerProxyBypass,
|
||||||
|
|
Loading…
Reference in New Issue