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?Envision eCommerce– Envision eCommerce2017年10月25日 12:05:13 +00:00Commented Oct 25, 2017 at 12:05
-
No.. i don't use CDN all JS are in FTP onlySagar Kodte– Sagar Kodte2017年10月25日 14:25:12 +00:00Commented 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.
Explore related questions
See similar questions with these tags.