Cut react devtools forwarding by webpack in production build

This commit is contained in:
Pavel Mineev
2020-04-12 02:31:34 -05:00
committed by Umputun
parent 49dd5bdf21
commit 053bea18cd
3 changed files with 11 additions and 5 deletions
-2
View File
@@ -2,8 +2,6 @@
echo "prepare environment"
# replace BASE_URL constant by REMARK_URL
sed -i "s|https://demo.remark42.com|${REMARK_URL}|g" /srv/web/*.js
# remove devtools attach helper. TODO: move to webpack loader
sed -i "/REMOVE-START/,/REMOVE-END/d" /srv/web/iframe.html
if [ -d "/srv/var" ]; then
chown -R app:app /srv/var 2>/dev/null