How to run magento 2 in production mode using ssh with baler and terser?

bin/magento s:up

bin/magento de:mo:se production

baler/bin/baler

THEME_FOLDER=('pub/static/frontend/Smartwave/porto_child/ pub/static/frontend/Smartwave/porto/')

find ${THEME_FOLDER[@]} \( -name '*.js' -not -name '*.min.js' -not -name 'core-bundle.js' -not -name 'requirejs-bundle-config.js' \) -exec terser/bin/terser \{} -c -m reserved=['$','jQuery','define','require','exports'] -o \{} \;

redis-cli flushall                                                                         

bin/magento c:c

bin/magento c:f

Метаданные статьи

Идентификатор статьи:
36
Категория:
Дата добавления:
12.06.2020 17:13:53
Просмотры:
483
Рейтинг (Голоса):
(0)

Связанные статьи