Closed tatarincev closed 5 years ago
Need to move all js packages that are loaded from CDN resources in these files: https://github.com/VirtoCommerce/vc-theme-default/blob/master/layout/theme.liquid https://github.com/VirtoCommerce/vc-theme-default/blob/master/layout/checkout_layout.liquid https://github.com/VirtoCommerce/vc-theme-default/blob/master/layout/account_layout.liquid
into bundle/scripts.js bundle which is included in the layout page by this statement {{ 'bundle/scripts.js' | static_asset_url | append_version | script_tag }}
bundle/scripts.js
{{ 'bundle/scripts.js' | static_asset_url | append_version | script_tag }}
Technical details: I guess we can use for this bower package manager. See how it done in the platform https://github.com/VirtoCommerce/vc-platform/blob/master/VirtoCommerce.Platform.Web/gulpfile.js#L18
bower
Released in v1.3.3.
Need to move all js packages that are loaded from CDN resources in these files: https://github.com/VirtoCommerce/vc-theme-default/blob/master/layout/theme.liquid https://github.com/VirtoCommerce/vc-theme-default/blob/master/layout/checkout_layout.liquid https://github.com/VirtoCommerce/vc-theme-default/blob/master/layout/account_layout.liquid
into
bundle/scripts.js
bundle which is included in the layout page by this statement{{ 'bundle/scripts.js' | static_asset_url | append_version | script_tag }}
Technical details: I guess we can use for this
bower
package manager. See how it done in the platform https://github.com/VirtoCommerce/vc-platform/blob/master/VirtoCommerce.Platform.Web/gulpfile.js#L18