cancel
Showing results for 
Search instead for 
Did you mean: 

js minification issue

js minification issue

I have tried almost every single thing there were some errors in system.log file i have also removed that , gave so much time to solve this issue . i want to minify and merged js . i set developer mode and select options using store->configuration->advance->developer nothing changed in my site i did run all commands upgrade, content deply , di compile , cache flush everything . gave permissions and all but still no good luck . can anyone give me some good trick ? 

6 REPLIES 6

Re: js minification issue

Hello @samair

 

You can try below methods:

 

1. Remove frontend folder from pub/static/ and run again php bin/magento setup:static-content:deploy -f, php bin/magento cache:flush, chmod -R 0777 var/ pub/ generated/

 

OR 

 

2.Remove frontend folder from pub/static/ and run again php bin/magento setup:static-content:deploy store_code -f, php bin/magento cache:flush, chmod -R 0777 var/ pub/ generated/

 

i.e. 

bin/magento setup:static-content:deploy en_US
Manish Mittal
https://www.manishmittal.com/

Re: js minification issue

tried it sir but it is not working for me . i have tried these type of things but nothing worked either . 

Re: js minification issue

Hello @samair,

 

Can you please provide us screenshot so we can get an idea about more idea about an error?

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: js minification issue

Please share issue in details with a screenshot so I can suggest you best solution.

Manish Mittal
https://www.manishmittal.com/

Re: js minification issue

actualy there is no error ... system logs are empty no error is there ... 


@gelanivishal wrote:

Hello @samair,

 

Can you please provide us screenshot so we can get an idea about more idea about an error?

 

--
If my answer is useful, please Accept as Solution & give Kudos


 

Re: js minification issue

Hello @samair,

 

If you want to check any error after merge js then you can see in console log tab. If you didn't get any error then it's minified successfully. You can also check minified js in view source.

Let us know if you get any error on console log.

--
If my answer is useful, please Accept as Solution & give Kudos