I have enabled the option minify js file in admin panel setting. But after doing these, it doesn't minify any single js file. It has just changed the name of js file to the .min.js and only in webpage. Even if you check file name in FTP it's still name as .js without .min. Not understanding this Option in magento 2. How it works?

  • Did you use the CDN or any other network delivery system? Oct 25, 2017 at 12:05
  • No.. i don't use CDN all JS are in FTP only Oct 25, 2017 at 14:25

1 Answer 1


You have run this command after setting the minify js option to yes.

php bin/magento setup:static-content:deploy

This will create minified js files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.