Browse Source

Issue 50963 - We should bundle *.min.js files of Console

Description: Currently, we do not bundle in the tarball the *.min.js
files which help with deciphering the obfuscated code which is actually
run by the browser. This leads to end-users submitting partially
unreadable JavaScript stack traces.

Please note this won't result in end-users having to download more data
just to use the Console, since these files are downloaded only when needed,
i.e. when Developer's Console is opened.

https://pagure.io/389-ds-base/issue/50963

Reviewed by: mreynolds (Thanks!)
tags/debian/1.4.3.6-1
Simon Pichugin 10 months ago
parent
commit
6fba9a81cd
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      rpm.mk

+ 0
- 2
rpm.mk View File

@@ -54,7 +54,6 @@ install-node-modules:
build-cockpit: install-node-modules
cd src/cockpit/389-console; \
NODE_ENV=production make -f node_modules.mk build-cockpit-plugin
cd src/cockpit/389-console; rm -rf cockpit_dist/index.min.js.map

dist-bz2: install-node-modules download-cargo-dependencies
cd src/cockpit/389-console; \
@@ -64,7 +63,6 @@ dist-bz2: install-node-modules download-cargo-dependencies
touch cockpit_dist/*
mkdir -p $(NODE_MODULES_TEST)
touch -r src/cockpit/389-console/package.json $(NODE_MODULES_TEST)
cd src/cockpit/389-console; rm -rf cockpit_dist/index.min.js.map
tar cjf $(GIT_TAG).tar.bz2 --transform "s,^,$(GIT_TAG)/," $$(git ls-files) src/cockpit/389-console/cockpit_dist/ src/cockpit/389-console/node_modules
cd src/cockpit/389-console; \
rm -rf node_modules; \


Loading…
Cancel
Save