Skip to content

Instantly share code, notes, and snippets.

@kirmorozov
Created May 30, 2019 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirmorozov/37c1357b6384a0717f346c8d53e161a8 to your computer and use it in GitHub Desktop.
Save kirmorozov/37c1357b6384a0717f346c8d53e161a8 to your computer and use it in GitHub Desktop.
jQuery 3 Patch for Magento 2.3.1
mkdir -p dev/patches
# apply jQuery 3 to the project
curl https://github.com/magento/magento2/compare/2.3.1...morozov-group:2.3.1-jquery3.patch |\
sed 's#/app/code/Magento/Catalog/#/vendor/magento/module-catalog/#g' |\
sed 's#/app/code/Magento/ConfigurableProduct/#/vendor/magento/module-configurable-product/#g' |\
sed 's#/app/code/Magento/ProductVideo/#/vendor/magento/module-product-video/#g' |\
sed 's#/app/code/Magento/Theme/#/vendor/magento/module-theme/#g' |\
sed 's#/app/code/Magento/Ui/#/vendor/magento/module-ui/#g' |\
sed 's#/app/code/Magento/User/#/vendor/magento/module-user/#g' > dev/patches/mg_jquery3.patch
patch -p1 --forward < dev/patches/mg_jquery3.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment