-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you describe some moments? #13
Comments
Yes, some documentation is needed. |
You can run the magepack generate command on your magento host or on any system to generate the magepack.config.js file. I copied this file to my magento root folder. After installing the patches, magepack magento module and doing bin/magento s:up I enabled it with bin/magento config:set dev/js/enable_magepack_js_bundling 1 and then did
I guess I would need to do these three steps after any changes or upgrades that clear static content. I have tested this in both dev and production modes. The results with pagespeed are very impressive so far. |
As far as I understand, Magepack is a tool meant for production builds. As such, you should only be using it in a production-mode context. The project README does appear to be written sequentially, although actual order can vary a little. I've described the process which seems to work best for me and likely for builds in a CD pipeline in another project: Adding relevant details here also:
This deviates from the order of the Magepack README a bit, but works nonetheless. Some of my settings here are different from what you may use. |
Could you give some comments about a deploy process?
Command
magepack generate --cms-url="{{CMS_PAGE_URL}}" --category-url="{{CATEGORY_PAGE_URL}}" --product-url="{{PRODUCT_PAGE_URL}}"
need run BEFOREbin/magento config:set dev/js/enable_magepack_js_bundling 1
or i can run command after too ?1.1 This command mast run only once?
If I use a site in production mode. How to set this settings:
The text was updated successfully, but these errors were encountered: