magento2
magento2 copied to clipboard
Disabeling js merge,bundle,minify does not work in admin
When disabling the js, and css ,merge, minify and bundling for default scope and keeping them enabled for website and store view scope, the admin still loads minified and bundled js
Preconditions
- Magento Version : 2.1.3
Steps to reproduce
- Disable js merge, minify, bundling for default scope in system config
- Enable the same in Website scope
- Enable the same in store view scope
Expected result
- Admin should load all the js files separately
- Frontend should load bundled files
Actual result
1.Admin loads all the files bundled
This is a duplicate of https://github.com/magento/magento2/issues/6638 (which was unfortunately closed due to Magento support people not understanding the problem :p). It's certainly a bug, but a very low priority one in my opinion.
@Taral-Patoliya: any particular reasons for wanting this behaviour? Just out of curiousity :) We no longer need this ourselves, as it was a workaround for an unrelated issue which we were having, but which was fixed later on.
@hostep We need to disable this behavior because we are getting js errors while accessing tiny_mce in backend for CMS Pages and Blocks, the tiny mce does not work with the js merged and bundled.
Please have a look at below screenshot

@Taral-Patoliya thank you for your report. Please use the issue reporting guidelines to report an issue. Include the preconditions, the steps required to reproduce, the actual result, and the expected result. Please, add the following information:
- [x] Preconditions: Magento version
@okorshenko I have updated the issue, and added the precondition
I'll work on this one. Just to let you know. Thanks.
I would like to leave an update here. I have investigated this issue and create PR https://github.com/magento/magento2/pull/11270 to fix it.
Looking forward to your review.
Thanks.
Nice job @roma-glushko!
But since in Magento 2.2.0, the developer tab is no longer available in production mode, should effort still be put into fixing this bug? Unless you can still manipulate these settings from the config.php file? (which I haven't verified yet)
This is still an issue in Magento 2.2.4 and therefor the editors are not working like @Taral-Patoliya explained
@versdivers: the editors aren't working properly because some module will most likely have overwritten the default <minify_exclude> configuration of Magento which disables minifying for the tiny_mce editor js files, and overwriting that setting by another module will cause the editor to no longer work properly. You can read more about this issue over here: https://github.com/magento/magento2/issues/11577
In Magento 2.2.4 you are most likely running into the issue because one of the Klarna modules which get included in 2.2.4 by default is overwriting that setting. You can fix it by disabling those Klarna modules, or updating them, I think I saw an update coming through using composer and it no longer seem to include this problem.
I'm also not considering this a bug anymore, I think the real bug is that you are able to change this setting over website & storeview scope. I believe it would be better if you could only configure this setting on a global level. The static content deploy mechanism is completely new in Magento 2 so we can no longer compare to how minifying worked in Magento 1.
@hostep I do believe that you can make the merging a scoped level setting. I mean.. Both the merged and the normal files are getting generated anyways. Just make them load the one or the other based on the scoped level...
the tiny_mce is a bug indeed. But if there is a setting and it doesnt work that classifies as a bug. even tough removing the scope level is the fix
Both the merged and the normal files are getting generated anyways.
Ah, I wasn't aware of this, sorry, request sound reasonable then :)
Well i am running a production website that merges everything. I still have the normal pub/static/frontend/vendor/theme/store/... filles and i also have the merged filles. If i have some time i will dig into the code to see where we can adjust some things. If i do not forget it. For now my biggest problem is solved with the update of Klarna module with composer
This SHOULD be fixed for sure! Because Merging and Bundling JS in admin area for us caused error in completeLoad() method of lib/web/requirejs/require.js on Catalog -> Products page. It TOTALLY STUCKS in FF, and mostly totally stucks in Chrome! This is another huge stone to Magento's "stability". I even don't pray you will read this and fix this bug in a year. Community version should be fixed by a community, we got it long time ago. Thanks for the attention!
@denysaw what version are you using? on 2.2.6 we do not have any issue with merging
2.2.6 CE, sure. I console.logged all js files, which goes thru evaluation and there're just Magento's files ( Dunno even what to think. My only chance was to disable merge/bundle in admin area. But it's unreal, yep. Even tried to add scope 'store' rows in DB with configs (merge/bundling) just for store. Nothing (
How is Magento installed? Did you composer install it or? maybe run a composer update. There needs to be some difference between our installations.
Hi @engcom-backlog-tomash. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if your want to validate it one more time, please, go though the following instruction:
-
[ ] 1. Add/Edit
Component: XXXXXlabel(s) to the ticket, indicating the components it may be related to. -
[ ] 2. Verify that the issue is reproducible on
2.3-developbranchDetails
- Add the comment@magento-engcom-team give me 2.3-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.3-developbranch, please, add the labelReproduced on 2.3.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
-
[ ] 3. Verify that the issue is reproducible on
2.2-developbranch.Details
- Add the comment@magento-engcom-team give me 2.2-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.2-developbranch, please add the labelReproduced on 2.2.x -
[ ] 4. If the issue is not relevant or is not reproducible any more, feel free to close it.
@engcom-backlog-tomash Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-97560, MAGETWO-97561 were created
Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
-
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
Details
If the issue has a valid description, the labelIssue: Format is validwill be added to the issue automatically. Please, edit issue description if needed, until labelIssue: Format is validappears. -
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
Issue: Clear Descriptionlabel to the issue by yourself. -
[ ] 3. Add
Component: XXXXXlabel(s) to the ticket, indicating the components it may be related to. -
[ ] 4. Verify that the issue is reproducible on
2.4-developbranchDetails
- Add the comment@magento give me 2.4-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-developbranch, please, add the labelReproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here! -
[ ] 5. Add label
Issue: Confirmedonce verification is complete. -
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Verified the issue on Magento 2.4-develop branch but the issue is not reproducible.
Configured JS bunding in Production mode as per devdocs and no Js errors were observed on admin UI and frontend. Kindly recheck the issue on Magento 2.4-develop branch as it is having latest code base and upcoming 2.4.x release. Please provide missing steps if any if the issue is still reproducible.
Thank you.

@engcom-November: the issue is not about errors in the console
The issue is about having the ability to disable JS bundling, or merging or minifying in the admin storeview only. So that you can have it enabled on the frontend storeviews but disabled in the adminhtml storeview.
Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
-
- Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
Details
If the issue has a valid description, the labelIssue: Format is validwill be added to the issue automatically. Please, edit issue description if needed, until labelIssue: Format is validappears.
- Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
-
- Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
Issue: Clear Descriptionlabel to the issue by yourself.
- Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
-
- Add
Component: XXXXXlabel(s) to the ticket, indicating the components it may be related to.
- Add
-
- Verify that the issue is reproducible on
2.4-developbranchDetails
- Add the comment@magento give me 2.4-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-developbranch, please, add the labelReproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
- Verify that the issue is reproducible on
- Join Magento Community Engineering Slack and ask your questions in #github channel.
@magento give me 2.4-develop branch
@magento give me 2.4-develop instance
Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Dash, here is your Magento Instance: https://14e8683c8f0527122c351834bf9d1e7e.instances.magento-community.engineering Admin access: https://14e8683c8f0527122c351834bf9d1e7e.instances.magento-community.engineering/admin_77aa Login: 00dbd524 Password: a0fad28d15b8
Hi @ Taral-Patoliya,
We are worked the issue with 2.4-develop instance...we are not able to reproduce the issue.we are getting actual result. Steps we followed:
1.Install magento Instance 2.go to stores 3.Click Advanced Go to developer 4.Click Js settings 5.Disable Js merge, minify, bundling for default scope in system config 6.Enable the same in Website scope 7.Enable the same in store view scope 8.In admin Panel all the Js files loaded separately
We are getting expected result as per your description.
I attached the screenshots for your Clarification:
These Screenshots refer Stores configuration as per your steps to reproduce.

Once the configuration admin Loaded all the Js files loaded separately....

Let us know if we missing anything !!!
Thanks!!!
@engcom-Dash: it kind of looks good I think (not sure why files aren't bundled in the admin that sounds like a problem still). But next to this test, can you also try the reverse by:
- Disabling Js merge, minify, bundling for default scope in system config
- Enabling them in Website scope
- Enabling them in store view scope
Which you said you did, but according to your screenshots you did the exact opposite...
Update: make sure you have production mode enabled, otherwise those settings won't be put into effect
How to unsubscribe of this channel? Magento is finally dead, but I'm still getting notifications of this thread and GitHub bugs to unsubscribe me ((
@denysaw-gaming: There should be an Unsubscribe button on the right side of this ticket. If there is only a Subscribe button, press it and then press Unsubscribe afterwards, that should hopefully do the trick :)
Or stop watching the project entirely in github, that might also help ...
If you want to see what the future of Magento looks like, I would suggest you start following https://mage-os.org/ instead where we will try to continue with moving it forward without Adobe's help.